mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
fix win_task for py3
.keys() on python3 creates a dict_keys object which cannot be indexed like a list, if we just call list() on the dictionary we get a list of keys.
This commit is contained in:
parent
c86163d79f
commit
19db39f402
1 changed files with 1 additions and 1 deletions
|
@ -240,7 +240,7 @@ def _reverse_lookup(dictionary, value):
|
|||
value_index = idx
|
||||
break
|
||||
|
||||
return dictionary.keys()[value_index]
|
||||
return list(dictionary)[value_index]
|
||||
|
||||
|
||||
def _lookup_first(dictionary, key):
|
||||
|
|
Loading…
Add table
Reference in a new issue