zypper: fix for checking result is None (#3143)

This commit is contained in:
Alex 2016-10-17 13:22:32 +02:00 committed by Matt Clay
parent 1948bcb9e7
commit 88e940a3e1

View file

@ -267,6 +267,7 @@ def get_cmd(m, subcommand):
def set_diff(m, retvals, result):
# TODO: if there is only one package, set before/after to version numbers
packages = {'installed': [], 'removed': [], 'upgraded': []}
if result:
for p in result:
group = result[p]['group']
if group == 'to-upgrade':