From 8f38e8463e8b7486813d2d1d9b1a5c808f46d16c Mon Sep 17 00:00:00 2001 From: Eddie Torres Date: Wed, 1 Nov 2023 00:00:22 +0000 Subject: [PATCH] bug hunting Signed-off-by: Eddie Torres --- pkg/cloud/cloud.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cloud/cloud.go b/pkg/cloud/cloud.go index 9dbd0ef9a5..f908d115a2 100644 --- a/pkg/cloud/cloud.go +++ b/pkg/cloud/cloud.go @@ -701,7 +701,7 @@ func (c *cloud) WaitForAttachmentState(ctx context.Context, volumeID, expectedSt // attached as /dev/xvdbb, where it was attached before and it was already detached. // Retry couple of times, hoping AWS starts reporting the right status. device := aws.StringValue(attachment.Device) - if expectedDevice != "" && device != "" && device != expectedDevice { + if device != expectedDevice { klog.InfoS("Expected device for volume not found", "expectedDevice", expectedDevice, "expectedState", expectedState, "volumeID", volumeID, "device", device, "attachmentState", attachmentState) return false, nil }