mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Make ec2 exact_count and count mutually exclusive
This commit is contained in:
parent
b3ab7e7885
commit
a62af82757
1 changed files with 9 additions and 1 deletions
|
@ -1033,7 +1033,15 @@ def main():
|
|||
volumes = dict(type='list'),
|
||||
)
|
||||
)
|
||||
module = AnsibleModule(argument_spec=argument_spec)
|
||||
|
||||
module = AnsibleModule(
|
||||
argument_spec=argument_spec,
|
||||
mutually_exclusive = [
|
||||
['exact_count', 'count'],
|
||||
['exact_count', 'state'],
|
||||
['exact_count', 'instance_ids']
|
||||
],
|
||||
)
|
||||
|
||||
ec2 = ec2_connect(module)
|
||||
|
||||
|
|
Loading…
Reference in a new issue