Skip to content

Commit

Permalink
Add example of using require_botocore_at_least
Browse files Browse the repository at this point in the history
  • Loading branch information
tremble committed Aug 6, 2021
1 parent e5099bf commit 9ea0249
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugins/modules/ec2_vol.py
Original file line number Diff line number Diff line change
Expand Up @@ -719,8 +719,7 @@ def main():
'Using the "list" state has been deprecated. Please use the ec2_vol_info module instead', date='2022-06-01', collection_name='amazon.aws')

if module.params.get('throughput'):
if not module.botocore_at_least("1.19.27"):
module.fail_json(msg="botocore >= 1.19.27 is required to set the throughput for a volume")
module.require_botocore_at_least('1.19.27', reason='to set the throughput for a volume')

# Ensure we have the zone or can get the zone
if instance is None and zone is None and state == 'present':
Expand Down

0 comments on commit 9ea0249

Please sign in to comment.