yum: cover "Nothing to do" not only for groups (#28283)

pull/28088/head
Martin Krizek 7 years ago committed by GitHub
parent 8a6e1531b7
commit bcb9644f39

@ -688,11 +688,8 @@ def exec_install(module, items, action, pkgs, res, yum_basecmd):
res['msg'] += err
res['changed'] = True
# special case for groups
for spec in items:
if spec.startswith('@'):
if ('Nothing to do' in out and rc == 0) or ('does not have any packages to install' in err):
res['changed'] = False
if ('Nothing to do' in out and rc == 0) or ('does not have any packages to install' in err):
res['changed'] = False
if rc != 0:
res['changed'] = False

Loading…
Cancel
Save