Skip to content

Commit

Permalink
Do not fail resizing attemps on conflict error
Browse files Browse the repository at this point in the history
Signed-off-by: Max Shaposhnyk <[email protected]>
  • Loading branch information
mshaposhnik authored and ifireball committed Jan 12, 2025
1 parent 3231915 commit 70a6cba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/ibm/ibmp.go
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,9 @@ func (r IBMPowerDynamicConfig) resizeInstanceVolume(ctx context.Context, service
err = r.updateVolume(localCtx, service, instance.VolumeIDs[0])
if err != nil {
log.Error(err, "failed to resize power server volume")
return
if err.Error() != "conflict" { // conflicts may happen if volume is not ready yet
return
}
}
}
}()
Expand Down

0 comments on commit 70a6cba

Please sign in to comment.