Skip to content

Commit

Permalink
Require botocore for the module
Browse files Browse the repository at this point in the history
  • Loading branch information
tremble committed Mar 1, 2022
1 parent 540ab3e commit 6c96b90
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugins/modules/networkfirewall_rule_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -763,6 +763,9 @@ def main():
('name', 'arn'),
],
)

module.require_botocore_at_least('1.19.20')

state = module.params.get('state')
name = module.params.get('name')
arn = module.params.get('arn')
Expand Down
2 changes: 2 additions & 0 deletions plugins/modules/networkfirewall_rule_group_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,8 @@ def main():
]
)

module.require_botocore_at_least('1.19.20')

arn = module.params.get('arn')
name = module.params.get('name')
rule_type = module.params.get('rule_type')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
collections:
- amazon.aws
- community.aws
# We have a base need of botocore >= 1.19.20 which should be fulfilled by the
# time we release 4.0.0, this has been locally tested against 1.20.0 only
# bumping the requirements for specific tests to 1.23.23
vars:
ansible_python_interpreter: "{{ botocore_virtualenv_interpreter }}"
block:
# Fetch some info about the account so we can build ARNs
- aws_caller_info: {}
Expand Down

0 comments on commit 6c96b90

Please sign in to comment.