apk: Fix mutual exclusivity (#2768)

* apk: Fix mutual exclusivity

Ensure that 'name' and 'upgrade' are mutually exclusive.
Also add a note to the documentation to say so.

Fixes: #2767

* Fix documentation
pull/18777/head
Kevin Brebanov 8 years ago committed by Matt Clay
parent 9ff52723a9
commit 4999bb28cd

@ -52,6 +52,8 @@ options:
required: false
default: no
choices: [ "yes", "no" ]
notes:
- '"name" and "upgrade" are mutually exclusive.'
'''
EXAMPLES = '''
@ -209,6 +211,7 @@ def main():
upgrade = dict(default='no', type='bool'),
),
required_one_of = [['name', 'update_cache', 'upgrade']],
mutually_exclusive = [['name', 'upgrade']],
supports_check_mode = True
)

Loading…
Cancel
Save