Merge pull request #10450 from spotinst/fix-elastigroup-voltype

Spotinst: Ignore volume type case sensitivity to prevent unnecessary updates
This commit is contained in:
Kubernetes Prow Robot 2020-12-18 18:52:25 -08:00 committed by GitHub
commit 409d0075c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -286,7 +286,7 @@ func (e *Elastigroup) Find(c *fi.Context) (*Elastigroup, error) {
actual.RootVolumeOpts.IOPS = fi.Int32(int32(fi.IntValue(b.EBS.IOPS)))
}
actual.RootVolumeOpts.Type = b.EBS.VolumeType
actual.RootVolumeOpts.Type = fi.String(strings.ToLower(fi.StringValue(b.EBS.VolumeType)))
actual.RootVolumeOpts.Size = fi.Int32(int32(fi.IntValue(b.EBS.VolumeSize)))
}
}