1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix for Issue #2470 - gem version string processing

This fix assumes that no sane gem version has spaces in it, so when one like that is encountered, it will get truncated at the first space.
This commit is contained in:
Andy Kluger 2013-10-02 17:55:30 -04:00
parent d21714a37f
commit ee054a491a

View file

@ -104,7 +104,7 @@ def get_installed_versions(module, remote=False):
if match:
versions = match.group(1)
for version in versions.split(', '):
installed_versions.append(version)
installed_versions.append(version.split()[0])
return installed_versions
def exists(module):