mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix OSX defaults for lists
In modern ansible, parameters default to string type. This causes issues for polymorphic parameters like this module's value param. note that this fix restores ansible-2.0 and previous behaviour but it is not perfect. If a parameter is specified via key=value or given on the commandline then it will be a string before it reaches the module code. There's nothing we can do about that. Fixes #19585
This commit is contained in:
parent
f5c1aefca9
commit
5536ffe978
1 changed files with 4 additions and 1 deletions
|
@ -116,7 +116,9 @@ EXAMPLES = '''
|
|||
'''
|
||||
|
||||
import datetime
|
||||
from ansible.module_utils.basic import *
|
||||
import re
|
||||
|
||||
from ansible.module_utils.basic import AnsibleModule
|
||||
from ansible.module_utils.pycompat24 import get_exception
|
||||
|
||||
# exceptions --------------------------------------------------------------- {{{
|
||||
|
@ -380,6 +382,7 @@ def main():
|
|||
value=dict(
|
||||
default=None,
|
||||
required=False,
|
||||
type='raw'
|
||||
),
|
||||
state=dict(
|
||||
default="present",
|
||||
|
|
Loading…
Reference in a new issue