Skip to content

Commit

Permalink
fix clusterFilter
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxtof committed Dec 25, 2021
1 parent fbac06f commit aeffc29
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion machine/driver/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ func (d *NutanixDriver) Create() error {
}

// Search target cluster
clusterFilter := fmt.Sprintf("name==%s", d.Cluster)
c := &url.URL{Path: d.Cluster}
encodedCluster := c.String()
clusterFilter := fmt.Sprintf("name==%s", encodedCluster)
clusters, err := conn.V3.ListAllCluster(clusterFilter)
if err != nil {
log.Errorf("Error getting clusters: [%v]", err)
Expand Down

0 comments on commit aeffc29

Please sign in to comment.