Changed rabbitmq module to check retcode from enable/disable plugin

This commit is contained in:
Ted Strzalkowski 2014-01-31 22:31:39 -08:00
parent 9560536b0b
commit 73b1633043

View File

@ -574,7 +574,7 @@ def enable_plugin(name, runas=None):
salt '*' rabbitmq.enable_plugin foo
'''
ret = __salt__['cmd.run'](
ret = __salt__['cmd.run_all'](
'rabbitmq-plugins enable {0}'.format(name),
runas=runas)
return _format_response(ret, 'Enabled')
@ -591,7 +591,7 @@ def disable_plugin(name, runas=None):
salt '*' rabbitmq.disable_plugin foo
'''
ret = __salt__['cmd.run'](
ret = __salt__['cmd.run_all'](
'rabbitmq-plugins disable {0}'.format(name),
runas=runas)
return _format_response(ret, 'Disabled')