mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Prevent crash on unknown to the repo package
This commit is contained in:
parent
3e76662166
commit
35f620e1c8
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