mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 05:10:22 -07:00
yum: fix state=latest (#28547)
This commit is contained in:
parent
6397e68bfd
commit
fbcf6e23af
1 changed files with 2 additions and 0 deletions
|
@ -1104,6 +1104,8 @@ def latest(module, items, repoq, yum_basecmd, conf_file, en_repos, dis_repos, in
|
|||
if not out_lower.endswith("no packages marked for update") and \
|
||||
not out_lower.endswith("nothing to do"):
|
||||
res['changed'] = True
|
||||
else:
|
||||
rc, out, err = [0, '', '']
|
||||
|
||||
res['rc'] = rc
|
||||
res['msg'] += err
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue