Correct msg to detect idempotent yum groupinstall (#37858)

The message text used to check stderr for a warning about
groupinstall in order to determine if a change occurred is specific
to the version of yum that is in RHEL7 and newer. This change simply
removes a couple words off the end in order to only use text found
in the warning message in older versions of yum.

Fixes #35982

Signed-off-by: Adam Miller <admiller@redhat.com>
This commit is contained in:
Adam Miller 2018-03-26 03:46:24 -05:00 committed by Martin Krizek
parent f0fd0f219d
commit 7cd3d9cc1a

View file

@ -770,7 +770,7 @@ def exec_install(module, items, action, pkgs, res, yum_basecmd):
res['msg'] += err res['msg'] += err
res['changed'] = True res['changed'] = True
if ('Nothing to do' in out and rc == 0) or ('does not have any packages to install' in err): if ('Nothing to do' in out and rc == 0) or ('does not have any packages' in err):
res['changed'] = False res['changed'] = False
if rc != 0: if rc != 0: