Skip to content

Commit

Permalink
Replace property.Filter with property.Match
Browse files Browse the repository at this point in the history
This is needed to account for v0.35.0 vmware/govmomi API
changes in the property package.
  • Loading branch information
atc0005 committed Feb 13, 2024
1 parent e7f18b9 commit 7b11e12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/vsphere/vms.go
Original file line number Diff line number Diff line change
Expand Up @@ -1284,7 +1284,7 @@ func getVMsCountUsingRootFolderContainerView(
}
}()

filter := property.Filter{"config.template": false}
filter := property.Match{"config.template": false}
prop := []string{"overallStatus"}

retrieveErr := v.RetrieveWithFilter(ctx, kind, prop, &allVMs, filter)
Expand Down

0 comments on commit 7b11e12

Please sign in to comment.