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
reviewable/pr18780/r1
Kevin Brebanov 8 years ago committed by René Moser
parent 0dcf27964c
commit b8db87d206

@ -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