diff --git a/salt/modules/rbenv.py b/salt/modules/rbenv.py index c977486409..99f2ce802f 100644 --- a/salt/modules/rbenv.py +++ b/salt/modules/rbenv.py @@ -72,10 +72,10 @@ def _rbenv_path(runas=None): if runas in (None, 'root'): path = __salt__['config.option']('rbenv.root') or '/usr/local/rbenv' else: - path = _cmd_quote(__salt__['config.option']('rbenv.root') - or '~{0}/.rbenv'.format(runas)) + path = _cmd_quote(os.path.expanduser(__salt__['config.option']('rbenv.root') + or '~{0}/.rbenv'.format(runas))) - return os.path.expanduser(path) + return path def _install_rbenv(path, runas=None):