diff --git a/pkg/cloud/cloud.go b/pkg/cloud/cloud.go index 9dbd0ef9a..f908d115a 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 }