Skip to content

Commit

Permalink
Update connection config check
Browse files Browse the repository at this point in the history
  • Loading branch information
tenstad committed Aug 29, 2021
1 parent 43db21d commit 6d890fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/provider/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ var connectionSchemaResource = &schema.Resource{
}

func ConnectionFromResourceData(d *schema.ResourceData) (string, *ssh.ClientConfig, error) {
_, ok := d.GetOk("conn.0.host")
_, ok := d.GetOk("conn")
if !ok {
return "", nil, fmt.Errorf("resouce does not have a connection configured")
}
Expand Down

0 comments on commit 6d890fb

Please sign in to comment.