Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PR #606/038c0474 backport][stable-1.5] ec2_vol: set iops even if unchanged for boto req #614

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
bugfixes:
- >-
ec2_vol - Sets the Iops value in req_obj even if the iops value
has not changed, to allow modifying volume types that require
passing an iops value to boto. (https://github.com/ansible-collections/amazon.aws/pull/606)
2 changes: 2 additions & 0 deletions plugins/modules/ec2_vol.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,8 @@ def update_volume(module, ec2_conn, volume):
if target_iops != original_iops:
iops_changed = True
req_obj['Iops'] = target_iops
else:
req_obj['Iops'] = original_iops
else:
# If no IOPS value is specified and there was a volume_type update to gp3,
# the existing value is retained, unless a volume type is modified that supports different values,
Expand Down
Empty file.