1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/plugins
patchback[bot] d4633cfcd5
gem: Fix get_installed_versions: correctly parse "default" version. (#783) (#918)
* 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>
2020-09-17 20:01:58 +02:00
..
action New module: shutdown (#700) 2020-08-18 08:29:38 +02:00
become Fix various sanity errors in plugins (#881) (#893) 2020-09-17 16:39:57 +00:00
cache Clean up deprecations (#504) 2020-06-16 13:15:19 +02:00
callback Fix various sanity errors in plugins (#881) (#893) 2020-09-17 16:39:57 +00:00
connection Fix plugins (names, constants, FQCNs in examples) (#722) 2020-08-18 08:29:44 +02:00
doc_fragments Scaleway - Fix api_token documentation (#747) 2020-08-18 08:30:30 +02:00
filter JC plugin (#750) 2020-08-18 08:30:37 +02:00
inventory Fix various sanity errors in plugins (#881) (#893) 2020-09-17 16:39:57 +00:00
lookup Fix various sanity errors in plugins (#881) (#893) 2020-09-17 16:39:57 +00:00
module_utils redfish_command: allow setting the BootSourceOverrideEnabled property (#825) (#915) 2020-09-17 19:50:12 +02:00
modules gem: Fix get_installed_versions: correctly parse "default" version. (#783) (#918) 2020-09-17 20:01:58 +02:00