mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +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
@@ -85,9 +85,10 @@ def get_local_version(pear_output):
|
||||
|
||||
def _get_pear_path(module):
|
||||
if module.params['executable'] and os.path.isfile(module.params['executable']):
|
||||
return module.params['executable']
|
||||
result = module.params['executable']
|
||||
else:
|
||||
return module.get_bin_path('pear', True, [module.params['executable']])
|
||||
result = module.get_bin_path('pear', True, [module.params['executable']])
|
||||
return result
|
||||
|
||||
def get_repository_version(pear_output):
|
||||
"""Take pear remote-info output and get the latest version"""
|
||||
|
||||
Reference in New Issue
Block a user