mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
Various commits to enable no-shell or safe-shell usage, more to come.
This commit is contained in:
@@ -89,7 +89,7 @@ def get_rubygems_path(module):
|
||||
return module.get_bin_path('gem', True)
|
||||
|
||||
def get_rubygems_version(module):
|
||||
cmd = [get_rubygems_path(module), '--version']
|
||||
cmd = [ get_rubygems_path(module), '--version' ]
|
||||
(rc, out, err) = module.run_command(cmd, check_rc=True)
|
||||
|
||||
match = re.match(r'^(\d+)\.(\d+)\.(\d+)', out)
|
||||
|
||||
Reference in New Issue
Block a user