mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-13 01:24:22 -07:00
* Fix get_installed_versions: correctly parse "default" version.
gem query output of
bundler (default: 2.1.4, 1.17.2)
Gets parsed as:
['default:', '1.17.2']
Fix this by skipping "default: " if present in the list of versions - by adding
it as an optional part of the regex, grouped as a non-capturing group to keep
the index of existing group.
This now correctly parses the above input as
['2.1.4:', '1.17.2']
Fixes #782
* Fix gem get_installed_versions (cont): add changelog fragment
* Update changelogs/fragments/783-fix-gem-installed-versions.yaml as per suggestion
Co-authored-by: Felix Fontein <felix@fontein.de>
Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit 6dc98c08fd
)
Co-authored-by: Vlad Mencl <vladimir.mencl@reannz.co.nz>
This commit is contained in:
parent
11315c8c69
commit
d4633cfcd5
2 changed files with 3 additions and 1 deletions
2
changelogs/fragments/783-fix-gem-installed-versions.yaml
Normal file
2
changelogs/fragments/783-fix-gem-installed-versions.yaml
Normal file
|
@ -0,0 +1,2 @@
|
|||
bugfixes:
|
||||
- "gem - fix get_installed_versions: correctly parse ``default`` version (https://github.com/ansible-collections/community.general/pull/783)."
|
Loading…
Add table
Add a link
Reference in a new issue