mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Bugfix: crash on "key not found" error
This commit is contained in:
parent
ea75f55a1a
commit
514f6349d4
1 changed files with 2 additions and 2 deletions
|
@ -1437,8 +1437,8 @@ def latest(
|
|||
targets[pkg] = avail[pkg]
|
||||
else:
|
||||
for pkg in desired_pkgs:
|
||||
if not avail[pkg]:
|
||||
if not cur[pkg]:
|
||||
if pkg not in avail:
|
||||
if not cur.get(pkg):
|
||||
msg = 'No information found for \'{0}\'.'.format(pkg)
|
||||
log.error(msg)
|
||||
problems.append(msg)
|
||||
|
|
Loading…
Add table
Reference in a new issue