From 2d459b797f954ea9239e49bb0360f29be91eb3d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Hub=C3=ADk?= Date: Wed, 5 Oct 2016 11:06:05 +0200 Subject: Fix incorrect line wrapping in output from yum check-updates https://github.com/ansible/ansible-modules-core/issues/4318#issuecomment-251416661 --- packaging/os/yum.py | 2 ++ 1 file changed, 2 insertions(+) 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: -- cgit v1.2.1