mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix py3-incompatible dict.keys()[x] call in apk.py
Fixes #48128 Previous line worked fine on Python 2.7, but on 3, emits: `TypeError: 'dict_keys' object does not support indexing`
This commit is contained in:
parent
2da56a69d9
commit
022f9cba50
1 changed files with 1 additions and 1 deletions
|
@ -304,7 +304,7 @@ def install(name=None,
|
|||
# We don't support installing specific version for now
|
||||
# so transform the dict in list ignoring version provided
|
||||
pkgs = [
|
||||
p.keys()[0] for p in pkgs
|
||||
next(iter(p)) for p in pkgs
|
||||
if isinstance(p, dict)
|
||||
]
|
||||
pkg_to_install.extend(pkgs)
|
||||
|
|
Loading…
Add table
Reference in a new issue