Skip to content

Commit cd725cd

Browse files
committed
fixup govmomi change
1 parent 0146dd9 commit cd725cd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

hack/tools/pkg/janitor/janitor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ func (s *Janitor) DeleteCNSVolumes(ctx context.Context, boskosResourceName strin
222222
}
223223
volumesToDelete := []cnsVolumeToDelete{}
224224

225-
queryFilter := cnstypes.CnsQueryFilter{
225+
queryFilter := &cnstypes.CnsQueryFilter{
226226
Labels: []types.KeyValue{
227227
{
228228
Key: boskosResourceLabel,

hack/tools/pkg/janitor/janitor_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ func Test_janitor_CleanupVSphere(t *testing.T) {
490490

491491
func queryTestCNSVolumes(ctx context.Context, client *cns.Client, testPrefix string) ([]cnstypes.CnsVolume, error) {
492492
// VCSim only implements queryfilters on volume IDs.
493-
res, err := client.QueryVolume(ctx, cnstypes.CnsQueryFilter{})
493+
res, err := client.QueryVolume(ctx, &cnstypes.CnsQueryFilter{})
494494
if err != nil {
495495
return nil, err
496496
}

0 commit comments

Comments
 (0)