mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix TypeError during rbenv ruby installation when rbenv is not found
This commit is contained in:
parent
8e14bc3941
commit
bfd0972d25
1 changed files with 1 additions and 1 deletions
|
@ -245,7 +245,7 @@ def install_ruby(ruby, runas=None):
|
|||
|
||||
ret = {}
|
||||
ret = _rbenv_exec(['install', ruby], env=env, runas=runas, ret=ret)
|
||||
if ret['retcode'] == 0:
|
||||
if ret is not False and ret['retcode'] == 0:
|
||||
rehash(runas=runas)
|
||||
return ret['stderr']
|
||||
else:
|
||||
|
|
Loading…
Add table
Reference in a new issue