mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix pkgutil "upgrade_catalog must be one of" err (#2149)
The arg spec for update_catalog include 'type=bool' and 'choices=["yes", "no"] which can never both be true. Remove the 'choices' directive, and update doc string. Fixes #2144
This commit is contained in:
parent
99646d5dbb
commit
f096cd6322
1 changed files with 3 additions and 3 deletions
|
@ -54,8 +54,8 @@ options:
|
||||||
description:
|
description:
|
||||||
- If you want to refresh your catalog from the mirror, set this to (C(yes)).
|
- If you want to refresh your catalog from the mirror, set this to (C(yes)).
|
||||||
required: false
|
required: false
|
||||||
choices: ["yes", "no"]
|
default: False
|
||||||
default: no
|
version_added: "2.1"
|
||||||
'''
|
'''
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
|
@ -129,7 +129,7 @@ def main():
|
||||||
name = dict(required = True),
|
name = dict(required = True),
|
||||||
state = dict(required = True, choices=['present', 'absent','latest']),
|
state = dict(required = True, choices=['present', 'absent','latest']),
|
||||||
site = dict(default = None),
|
site = dict(default = None),
|
||||||
update_catalog = dict(required = False, default = "no", type='bool', choices=["yes","no"]),
|
update_catalog = dict(required = False, default = False, type='bool'),
|
||||||
),
|
),
|
||||||
supports_check_mode=True
|
supports_check_mode=True
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue