diff --git a/test/e2e/storage/vsphere/vsphere_utils.go b/test/e2e/storage/vsphere/vsphere_utils.go index 8f0e81af29..8cea902ca5 100644 --- a/test/e2e/storage/vsphere/vsphere_utils.go +++ b/test/e2e/storage/vsphere/vsphere_utils.go @@ -719,11 +719,10 @@ func diskIsAttached(volPath string, nodeName string) (bool, error) { nodeName) return false, err } - if device != nil { - framework.Logf("diskIsAttached found the disk %q attached on node %q", - volPath, - nodeName) + if device == nil { + return false, nil } + framework.Logf("diskIsAttached found the disk %q attached on node %q", volPath, nodeName) return true, nil } diff --git a/test/e2e/storage/vsphere/vsphere_volume_fstype.go b/test/e2e/storage/vsphere/vsphere_volume_fstype.go index 75c65d5a2b..b631c3b0ba 100644 --- a/test/e2e/storage/vsphere/vsphere_volume_fstype.go +++ b/test/e2e/storage/vsphere/vsphere_volume_fstype.go @@ -73,7 +73,7 @@ var _ = utils.SIGDescribe("Volume FStype [Feature:vsphere]", func() { Bootstrap(f) client = f.ClientSet namespace = f.Namespace.Name - Expect(GetReadySchedulableNodeInfos).NotTo(BeEmpty()) + Expect(GetReadySchedulableNodeInfos()).NotTo(BeEmpty()) }) It("verify fstype - ext3 formatted volume", func() {