mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 05:10:22 -07:00
Replace choices=BOOLEANS by type='bool', fix #1326
This commit is contained in:
parent
c7f6b5e41f
commit
df195b3076
13 changed files with 34 additions and 34 deletions
|
@ -177,8 +177,8 @@ def main():
|
|||
argument_spec = dict(
|
||||
state = dict(default='present', choices=['present', 'installed', 'absent', 'removed', 'latest']),
|
||||
name = dict(type='list'),
|
||||
update_cache = dict(default='no', choices=BOOLEANS, type='bool'),
|
||||
upgrade = dict(default='no', choices=BOOLEANS, type='bool'),
|
||||
update_cache = dict(default='no', type='bool'),
|
||||
upgrade = dict(default='no', type='bool'),
|
||||
),
|
||||
required_one_of = [['name', 'update_cache', 'upgrade']],
|
||||
supports_check_mode = True
|
||||
|
|
|
@ -77,9 +77,9 @@ def main():
|
|||
]
|
||||
),
|
||||
accept_licenses=dict(
|
||||
choices=BOOLEANS,
|
||||
default=False
|
||||
aliases=['accept_licences', 'accept']
|
||||
type='bool',
|
||||
default=False,
|
||||
aliases=['accept_licences', 'accept'],
|
||||
),
|
||||
)
|
||||
)
|
||||
|
|
|
@ -76,8 +76,8 @@ def main():
|
|||
argument_spec=dict(
|
||||
name=dict(required=True, aliases=['publisher']),
|
||||
state=dict(default='present', choices=['present', 'absent']),
|
||||
sticky=dict(choices=BOOLEANS),
|
||||
enabled=dict(choices=BOOLEANS),
|
||||
sticky=dict(type='bool'),
|
||||
enabled=dict(type='bool'),
|
||||
# search_after=dict(),
|
||||
# search_before=dict(),
|
||||
origin=dict(type='list'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue