Fix pointers ... :D

This commit is contained in:
Jan Mußler 2021-06-30 14:17:47 +02:00
parent c1daf5b00c
commit 9e832dc1e3
1 changed files with 2 additions and 2 deletions

View File

@ -96,13 +96,13 @@ func (c *Cluster) syncUnderlyingEBSVolume() error {
var modifySize *int64
var modifyType *string
if targetValue.Iops != nil && targetValue.Iops >= 3000 {
if targetValue.Iops != nil && *targetValue.Iops >= int64(3000) {
if volume.Iops != *targetValue.Iops {
modifyIops = targetValue.Iops
}
}
if targetValue.Throughput != nil && targetValue.Throughput >= 125{
if targetValue.Throughput != nil && *targetValue.Throughput >= int64(125) {
if volume.Throughput != *targetValue.Throughput {
modifyThroughput = targetValue.Throughput
}