Skip to content

Commit

Permalink
ignore invalid check for ec2
Browse files Browse the repository at this point in the history
  • Loading branch information
gaisin committed Sep 10, 2021
1 parent 046fc06 commit 6f05e1e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions pkg/cloud/devicemanager/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,6 @@ func (d *deviceManager) getVolumeIdsInUse(instance *ec2.Instance) []string {
// trim device prefix from name
name = strings.TrimPrefix(name, devPreffix)

if len(name) < 1 || len(name) > 2 {
klog.Warningf("Unexpected EBS DeviceName: %q", aws.StringValue(blockDevice.DeviceName))
}

inUse = append(inUse, *blockDevice.Ebs.VolumeId)
}

Expand Down

0 comments on commit 6f05e1e

Please sign in to comment.