ansible / ansible-modules-core

Ansible modules - these modules ship with ansible
1.3k stars 1.95k forks source link

Fix 'yum skips updates' bug (#21113) #5896

Closed alikins closed 7 years ago

alikins commented 7 years ago

When the 'yum check-update' output is parsed, the regex used to stitch wrapped lines together would fail on the first package.

It would fail because there is an empty line before the first package, and this triggered the regex. To avoid a more complicated regex, preprocess the check-update output to strip out any empty lines.

The regex is also updated to include a group on the non whitespace match to be used in the sub.

Add test cases based on info provided in the bug reports.

Fixes #20608

(backport of commit e511326222c908f8879f1283571234eda14f5471 from ansible/ansible)

This repository is locked

Please open all new issues and pull requests in https://github.com/ansible/ansible

For more information please see http://docs.ansible.com/ansible/dev_guide/repomerge.html

ansibot commented 7 years ago

This repository has been locked. All new issues and pull requests should be filed in https://github.com/ansible/ansible

Please read through the repomerge page in the dev guide.

alikins commented 7 years ago

bot_broken

ansibot commented 7 years ago

This repository has been locked. All new issues and pull requests should be filed in https://github.com/ansible/ansible

Please read through the repomerge page in the dev guide.