diff --git a/lib/ansible/module_utils/basic.py b/lib/ansible/module_utils/basic.py index e14ebfa680..d2cf09458e 100644 --- a/lib/ansible/module_utils/basic.py +++ b/lib/ansible/module_utils/basic.py @@ -213,7 +213,7 @@ except ImportError: elif isinstance(node, ast.List): return list(map(_convert, node.nodes)) elif isinstance(node, ast.Dict): - return dict((_convert(k), _convert(v)) for k, v in node.items) + return dict((_convert(k), _convert(v)) for k, v in node.items()) elif isinstance(node, ast.Name): if node.name in _safe_names: return _safe_names[node.name]