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:
parent
f0fd0f219d
commit
7cd3d9cc1a
1 changed files with 1 additions and 1 deletions
|
@ -770,7 +770,7 @@ def exec_install(module, items, action, pkgs, res, yum_basecmd):
|
|||
res['msg'] += err
|
||||
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
|
||||
|
||||
if rc != 0:
|
||||
|
|
Loading…
Reference in a new issue