1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

yum: fix state=latest (#28547)

This commit is contained in:
René Moser 2017-08-23 10:22:16 +02:00 committed by GitHub
parent 6397e68bfd
commit fbcf6e23af

View file

@ -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 \ if not out_lower.endswith("no packages marked for update") and \
not out_lower.endswith("nothing to do"): not out_lower.endswith("nothing to do"):
res['changed'] = True res['changed'] = True
else:
rc, out, err = [0, '', '']
res['rc'] = rc res['rc'] = rc
res['msg'] += err res['msg'] += err