don't restrict disable_excludes choices incorrectly (#47453)

* don't restrict disable_excludes choices incorrectly

Fixes #47085

(cherry picked from commit 0e3e646189)
Signed-off-by: Adam Miller <admiller@redhat.com>
pull/47530/head
Adam Miller 6 years ago committed by Toshio Kuratomi
parent 8a40514d2b
commit 916b1e34bd

@ -0,0 +1,3 @@
---
minor_changes:
- "dnf appropriately handles disable_excludes repoid argument"

@ -22,7 +22,7 @@ yumdnf_argument_spec = dict(
autoremove=dict(type='bool', default=False), autoremove=dict(type='bool', default=False),
bugfix=dict(required=False, type='bool', default=False), bugfix=dict(required=False, type='bool', default=False),
conf_file=dict(type='str'), conf_file=dict(type='str'),
disable_excludes=dict(type='str', default=None, choices=['all', 'main', 'repoid']), disable_excludes=dict(type='str', default=None),
disable_gpg_check=dict(type='bool', default=False), disable_gpg_check=dict(type='bool', default=False),
disable_plugin=dict(type='list', default=[]), disable_plugin=dict(type='list', default=[]),
disablerepo=dict(type='list', default=[]), disablerepo=dict(type='list', default=[]),

@ -149,7 +149,6 @@ options:
- If set to C(main), disable excludes defined in [main] in yum.conf. - If set to C(main), disable excludes defined in [main] in yum.conf.
- If set to C(repoid), disable excludes defined for given repo id. - If set to C(repoid), disable excludes defined for given repo id.
required: false required: false
choices: [ all, main, repoid ]
version_added: "2.7" version_added: "2.7"
validate_certs: validate_certs:
description: description:

@ -183,7 +183,6 @@ options:
- If set to C(main), disable excludes defined in [main] in yum.conf. - If set to C(main), disable excludes defined in [main] in yum.conf.
- If set to C(repoid), disable excludes defined for given repo id. - If set to C(repoid), disable excludes defined for given repo id.
required: false required: false
choices: [ all, main, repoid ]
version_added: "2.7" version_added: "2.7"
download_only: download_only:
description: description:

Loading…
Cancel
Save