Merge pull request #38589 from tobithiel/fix_rvm_rbenv_warning

State Gem: fix incorrect warning about missing rvm/rbenv
This commit is contained in:
Mike Place 2017-01-05 13:12:14 -07:00 committed by GitHub
commit a376970f88

View file

@ -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'
)