diff options
author | Filip HubĂk <fhubik@redhat.com> | 2016-10-05 11:06:05 +0200 |
---|---|---|
committer | Toshio Kuratomi <a.badger@gmail.com> | 2016-11-01 07:58:59 -0700 |
commit | 0feb7e3445df8cd19f3754e2eab63994437e18c0 (patch) | |
tree | f374e1def70dc1e6355a78e9ce87e8a57339219a | |
parent | 8f0ab373d59fd59fbb2942e870ebc6502dce0f89 (diff) | |
download | ansible-modules-core-0feb7e3445df8cd19f3754e2eab63994437e18c0.tar.gz |
Fix incorrect line wrapping in output from yum check-updates
https://github.com/ansible/ansible-modules-core/issues/4318#issuecomment-251416661
(cherry picked from commit 2d459b797f954ea9239e49bb0360f29be91eb3d3)
-rw-r--r-- | packaging/os/yum.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packaging/os/yum.py b/packaging/os/yum.py index 7602b248..131144d8 100644 --- a/packaging/os/yum.py +++ b/packaging/os/yum.py @@ -800,6 +800,8 @@ def latest(module, items, repoq, yum_basecmd, conf_file, en_repos, dis_repos): res['results'].append('Nothing to do here, all packages are up to date') return res elif rc == 100: + # remove incorrect new lines in longer columns in output from yum check-update + out=re.sub('\n\W+', ' ', out) available_updates = out.split('\n') # build update dictionary for line in available_updates: |