yum: cover "Nothing to do" not only for groups (#28283)
parent
8a6e1531b7
commit
bcb9644f39
|
@ -688,11 +688,8 @@ def exec_install(module, items, action, pkgs, res, yum_basecmd):
|
||||||
res['msg'] += err
|
res['msg'] += err
|
||||||
res['changed'] = True
|
res['changed'] = True
|
||||||
|
|
||||||
# special case for groups
|
if ('Nothing to do' in out and rc == 0) or ('does not have any packages to install' in err):
|
||||||
for spec in items:
|
res['changed'] = False
|
||||||
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 rc != 0:
|
if rc != 0:
|
||||||
res['changed'] = False
|
res['changed'] = False
|
||||||
|
|
Loading…
Reference in New Issue