mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
[fix] pylint errors on modules packaging language (#30748)
* cleaning pylint errors for module packaging/language/*
This commit is contained in:
committed by
Toshio Kuratomi
parent
e767c7d694
commit
cddff32792
@@ -116,9 +116,10 @@ from ansible.module_utils.basic import AnsibleModule
|
||||
|
||||
def get_rubygems_path(module):
|
||||
if module.params['executable']:
|
||||
return module.params['executable'].split(' ')
|
||||
result = module.params['executable'].split(' ')
|
||||
else:
|
||||
return [ module.get_bin_path('gem', True) ]
|
||||
result = [module.get_bin_path('gem', True)]
|
||||
return result
|
||||
|
||||
def get_rubygems_version(module):
|
||||
cmd = get_rubygems_path(module) + [ '--version' ]
|
||||
|
||||
Reference in New Issue
Block a user