Fix role hashing failure/traceback when params contain lists

Fixes #13857
This commit is contained in:
James Cammarata 2016-01-19 11:02:15 -05:00
parent 94a9ed0ee1
commit 1af473548b

View file

@ -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):