Skip to content

Commit

Permalink
handling describe instances consistency issue
Browse files Browse the repository at this point in the history
  • Loading branch information
vdhanan authored and Varun Dhananjaya committed Mar 18, 2021
1 parent a4d4871 commit 51f33fa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/cloud/devicemanager/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,10 @@ func (d *deviceManager) getDeviceNamesInUse(instance *ec2.Instance) map[string]s
if len(name) < 1 || len(name) > 2 {
klog.Warningf("Unexpected EBS DeviceName: %q", aws.StringValue(blockDevice.DeviceName))
}
if blockDevice.Ebs != nil && blockDevice.Ebs.VolumeId != nil {
inUse[string(*blockDevice.Ebs.VolumeId)] = aws.StringValue(blockDevice.Ebs.Status)
}

inUse[name] = aws.StringValue(blockDevice.Ebs.VolumeId)
}

Expand Down

0 comments on commit 51f33fa

Please sign in to comment.