Remove nothing to do flag for migration.

This commit is contained in:
Jan Mußler 2020-12-09 15:50:43 +01:00
parent ad965a191b
commit 562b4c6b3f
1 changed files with 0 additions and 4 deletions

View File

@ -151,10 +151,6 @@ func (r *EBSVolumeResizer) ModifyVolume(volumeID string, newType string, newSize
if *vol.VolumeId != volumeID { if *vol.VolumeId != volumeID {
return fmt.Errorf("describe volume %q returned information about a non-matching volume %q", volumeID, *vol.VolumeId) return fmt.Errorf("describe volume %q returned information about a non-matching volume %q", volumeID, *vol.VolumeId)
} }
if *vol.Size == newSize {
// nothing to do
return nil
}
input := ec2.ModifyVolumeInput{Size: &newSize, VolumeId: &volumeID, VolumeType: &newType, Iops: &iops, Throughput: &throughput} input := ec2.ModifyVolumeInput{Size: &newSize, VolumeId: &volumeID, VolumeType: &newType, Iops: &iops, Throughput: &throughput}
output, err := r.connection.ModifyVolume(&input) output, err := r.connection.ModifyVolume(&input)