mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #38589 from tobithiel/fix_rvm_rbenv_warning
State Gem: fix incorrect warning about missing rvm/rbenv
This commit is contained in:
commit
a376970f88
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ def installed(name, # pylint: disable=C0103
|
|||
Format: http://hostname[:port]
|
||||
'''
|
||||
ret = {'name': name, 'result': None, 'comment': '', 'changes': {}}
|
||||
if ruby is not None and (__salt__['rvm.is_installed'](runas=user) or __salt__['rbenv.is_installed'](runas=user)):
|
||||
if ruby is not None and not(__salt__['rvm.is_installed'](runas=user) or __salt__['rbenv.is_installed'](runas=user)):
|
||||
log.warning(
|
||||
'Use of argument ruby found, but neither rvm or rbenv is installed'
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue