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
Vlad Mencl 6dc98c08fd
gem: Fix get_installed_versions: correctly parse "default" version. (#783)
* 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>
2020-09-03 07:47:34 +02:00
..
action New module: iptables_state (#271) 2020-08-15 10:36:07 +02:00
become Fix more become plugins (#708) 2020-07-29 20:27:16 +02:00
cache Clean up deprecations (#504) 2020-06-16 13:15:19 +02:00
callback Fix plugins (names, constants, FQCNs in examples) (#722) 2020-08-08 22:04:34 +02:00
connection Fix plugins (names, constants, FQCNs in examples) (#722) 2020-08-08 22:04:34 +02:00
doc_fragments Scaleway - Fix api_token documentation (#747) 2020-08-10 10:51:42 +02:00
filter JC plugin (#750) 2020-08-11 09:12:17 +03:00
inventory New inventory module: Proxmox (#545) 2020-08-21 13:16:59 +02:00
lookup dsv: Use correct dict usage (#743) 2020-08-10 10:22:24 +05:30
module_utils ipa module utils: BUGFIX ipa modules Cookie problem with Loadbalanced IPA and Python3 (… (#738) 2020-08-07 08:26:38 +02:00
modules gem: Fix get_installed_versions: correctly parse "default" version. (#783) 2020-09-03 07:47:34 +02:00