Skip to content

Commit

Permalink
Merge pull request #129 from yannickstruyf3/fix-#128
Browse files Browse the repository at this point in the history
Fix for #128 Changed parameter for subnet filter
  • Loading branch information
marinsalinas authored May 22, 2020
2 parents 8265add + 102ff50 commit 31e9f03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nutanix/data_source_nutanix_subnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ func findSubnetByUUID(conn *v3.Client, uuid string) (*v3.SubnetIntentResponse, e
}

func findSubnetByName(conn *v3.Client, name string) (*v3.SubnetIntentResponse, error) {
filter := fmt.Sprintf("subnet_name==%s", name)
filter := fmt.Sprintf("name==%s", name)
resp, err := conn.V3.ListAllSubnet(filter)
if err != nil {
return nil, err
Expand Down

0 comments on commit 31e9f03

Please sign in to comment.