mirror of
https://github.com/valitydev/salt.git
synced 2024-11-09 01:36:48 +00:00
Bugfix: crash on "key not found" error
This commit is contained in:
parent
ea75f55a1a
commit
514f6349d4
@ -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…
Reference in New Issue
Block a user