diff options
author | René Moser <mail@renemoser.net> | 2017-08-23 10:22:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-23 10:22:16 +0200 |
commit | fbcf6e23af96eec737eb8fe013f188f36b2119fb (patch) | |
tree | 7288984982376235d79c15b5d1aef671af4478b1 | |
parent | 6397e68bfdbc5097a6351168cdb97d1b6b943bb9 (diff) | |
download | ansible-fbcf6e23af96eec737eb8fe013f188f36b2119fb.tar.gz |
yum: fix state=latest (#28547)
-rw-r--r-- | lib/ansible/modules/packaging/os/yum.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ansible/modules/packaging/os/yum.py b/lib/ansible/modules/packaging/os/yum.py index fbcd9dc725..39337e8443 100644 --- a/lib/ansible/modules/packaging/os/yum.py +++ b/lib/ansible/modules/packaging/os/yum.py @@ -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 |