Merge pull request #38991 from isbm/isbm-zypper-state-unknown-pkg-crash

Isbm zypper state unknown pkg crash
This commit is contained in:
Mike Place 2017-01-27 09:59:37 -07:00 committed by GitHub
commit b40f369d98

View file

@ -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)