mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
[fix] pkg.installed call on pkg.install (#36904)
This commit is contained in:
parent
6c441cb288
commit
6654444fea
@ -301,6 +301,12 @@ def install(name=None,
|
||||
pkg_to_install = [name]
|
||||
|
||||
if pkgs:
|
||||
# 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
|
||||
if isinstance(p, dict)
|
||||
]
|
||||
pkg_to_install.extend(pkgs)
|
||||
|
||||
if not pkg_to_install:
|
||||
|
Loading…
Reference in New Issue
Block a user