mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-05 21:54:22 -07:00
"gem"-module: replace python 2.5 language feature
replace conditional expression with python 2.4-compatible if/else statements
This commit is contained in:
parent
b066e9c15c
commit
fd6b4c2257
1 changed files with 4 additions and 1 deletions
|
@ -130,7 +130,10 @@ def install(module):
|
||||||
return
|
return
|
||||||
|
|
||||||
ver = get_rubygems_version(module)
|
ver = get_rubygems_version(module)
|
||||||
major = ver[0] if ver else None
|
if ver:
|
||||||
|
major = ver[0]
|
||||||
|
else:
|
||||||
|
major = None
|
||||||
|
|
||||||
cmd = [ module.get_bin_path('gem', True) ]
|
cmd = [ module.get_bin_path('gem', True) ]
|
||||||
cmd.append('install')
|
cmd.append('install')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue