diff options
author | Filip HubĂk <fhubik@redhat.com> | 2016-10-05 11:06:05 +0200 |
---|---|---|
committer | Toshio Kuratomi <a.badger@gmail.com> | 2016-10-19 11:04:45 -0700 |
commit | f8834cf69e3a923d7849f3d9f02fb7a1cbb1398a (patch) | |
tree | d0982b043781dc89b2b6482641991334c2c9957f | |
parent | 97eb7f548c7c64e60220298cd16c10f1d56333d5 (diff) | |
download | ansible-modules-core-f8834cf69e3a923d7849f3d9f02fb7a1cbb1398a.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: |