Fix role hashing failure/traceback when params contain lists
Fixes #13857
This commit is contained in:
parent
94a9ed0ee1
commit
1af473548b
1 changed files with 4 additions and 1 deletions
|
@ -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…
Reference in a new issue