diff --git a/lib/ansible/module_utils/basic.py b/lib/ansible/module_utils/basic.py index baf662e96f1..df4f176b53e 100644 --- a/lib/ansible/module_utils/basic.py +++ b/lib/ansible/module_utils/basic.py @@ -1474,7 +1474,7 @@ class AnsibleModule(object): if isinstance(value, (unicode, bytes)): return value.strip() else: - if isinstance(value (list, tuple, dict)): + if isinstance(value, (list, tuple, dict)): return json.dumps(value) raise TypeError('%s cannot be converted to a json string' % type(value))