mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Fix wrong check for rvm script existence
This commit is contained in:
parent
9246f64f9b
commit
f1aa6931a4
@ -28,7 +28,7 @@ def _get_rvm_location(runas=None):
|
|||||||
if runas:
|
if runas:
|
||||||
runas_home = os.path.expanduser('~{0}'.format(runas))
|
runas_home = os.path.expanduser('~{0}'.format(runas))
|
||||||
rvmpath = '{0}/.rvm/bin/rvm'.format(runas_home)
|
rvmpath = '{0}/.rvm/bin/rvm'.format(runas_home)
|
||||||
if os.path.isdir(rvmpath):
|
if os.path.exists(rvmpath):
|
||||||
return rvmpath
|
return rvmpath
|
||||||
return '/usr/local/rvm/bin/rvm'
|
return '/usr/local/rvm/bin/rvm'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user