survey runner bugfix

This commit is contained in:
Bike Dude 2017-10-04 20:50:03 +02:00
parent d28aa20c74
commit 2dbee2b0fc
No known key found for this signature in database
GPG Key ID: 48D9F04503FC9A33

View File

@ -171,7 +171,7 @@ def _get_pool_results(*args, **kwargs):
# hash minion return values as a string
for minion in sorted(minions):
digest = hashlib.sha256(str(minions[minion]).encode('utf-8')).hexdigest()
digest = hashlib.sha256(str(minions[minion]).encode(__salt_system_encoding__)).hexdigest()
if digest not in ret:
ret[digest] = {}
ret[digest]['pool'] = []