mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Fix parameters where type is assumed.
A change is coming to Ansible where module params will default to str. Many of our modules were taking advantage of this by not being explicit about the type, so they will break when that change merges. This hopefully catches those cases.
This commit is contained in:
committed by
Matt Clay
parent
ca9be1d62c
commit
d7568a50e2
@@ -53,7 +53,7 @@ EXAMPLES = '''
|
||||
|
||||
def main():
|
||||
module = AnsibleModule(argument_spec=dict(
|
||||
clouds=dict(required=False, default=[]),
|
||||
clouds=dict(required=False, type='list', default=[]),
|
||||
))
|
||||
p = module.params
|
||||
|
||||
|
||||
Reference in New Issue
Block a user