From 7268d06bfe5878ad40a4e5bd2246589dbbe8089e Mon Sep 17 00:00:00 2001 From: James Tanner Date: Fri, 7 Feb 2014 13:42:43 -0500 Subject: [PATCH] Make ec2 exact_count and count mutually exclusive --- cloud/ec2 | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/cloud/ec2 b/cloud/ec2 index 1953d1fc0b6..557830b7500 100644 --- a/cloud/ec2 +++ b/cloud/ec2 @@ -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)