From bed24689ec01f3d6bdb4c120932fef7e8bc06287 Mon Sep 17 00:00:00 2001 From: "Ryan S. Brown" Date: Thu, 28 Jul 2016 15:54:09 -0400 Subject: [PATCH] Fix syntax error in json/jsonarg type parser The lack of a comma caused the statement to always evaluate as a `TypeError` when python interpreted `value (list, tuple, dict)` to call value with the arguments list, tuple, and dict. --- lib/ansible/module_utils/basic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))