Skip to content

Commit 5849f16

Browse files
committed
Fix vsphere util method - disksAreAttached
1 parent 9e70d6f commit 5849f16

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/e2e/storage/vsphere/vsphere_utils.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,7 @@ func registerNodeVM(nodeName, workingDir, vmxFilePath string, rpool *object.Reso
690690
}
691691

692692
// disksAreAttached takes map of node and it's volumes and returns map of node, its volumes and attachment state
693-
func disksAreAttached(nodeVolumes map[string][]string) (nodeVolumesAttachMap map[string]map[string]bool, err error) {
693+
func disksAreAttached(nodeVolumes map[string][]string) (map[string]map[string]bool, error) {
694694
ctx, cancel := context.WithCancel(context.Background())
695695
defer cancel()
696696

@@ -713,7 +713,7 @@ func disksAreAttached(nodeVolumes map[string][]string) (nodeVolumesAttachMap map
713713
}
714714
volumeAttachedMap[volume] = attached
715715
}
716-
nodeVolumesAttachMap[vm] = volumeAttachedMap
716+
disksAttached[vm] = volumeAttachedMap
717717
}
718718
return disksAttached, nil
719719
}

0 commit comments

Comments
 (0)