Fix role hashing failure/traceback when params contain lists

Fixes #13857
pull/14214/head
James Cammarata 9 years ago
parent fb81447581
commit 1fc35117d3

@ -43,7 +43,10 @@ __all__ = ['Role', 'hash_params']
# strategies (ansible/plugins/strategy/__init__.py)
def hash_params(params):
if not isinstance(params, dict):
return params
if isinstance(params, list):
return frozenset(params)
else:
return params
else:
s = set()
for k,v in iteritems(params):

Loading…
Cancel
Save