mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Changed rabbitmq module to check retcode from enable/disable plugin
This commit is contained in:
parent
9560536b0b
commit
73b1633043
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user