mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #38991 from isbm/isbm-zypper-state-unknown-pkg-crash
Isbm zypper state unknown pkg crash
This commit is contained in:
commit
b40f369d98
1 changed files with 1 additions and 1 deletions
|
@ -1909,7 +1909,7 @@ def latest(
|
|||
for pkg in desired_pkgs:
|
||||
if not avail.get(pkg):
|
||||
# Package either a) is up-to-date, or b) does not exist
|
||||
if not cur[pkg]:
|
||||
if not cur.get(pkg):
|
||||
# Package does not exist
|
||||
msg = 'No information found for \'{0}\'.'.format(pkg)
|
||||
log.error(msg)
|
||||
|
|
Loading…
Add table
Reference in a new issue