mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-03 04:34:24 -07:00
zypper: fix for checking result is None (#3143)
This commit is contained in:
parent
1948bcb9e7
commit
88e940a3e1
1 changed files with 10 additions and 9 deletions
|
@ -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':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue