diff --git a/salt/modules/rabbitmq.py b/salt/modules/rabbitmq.py index d7c802247b..4758e4845e 100644 --- a/salt/modules/rabbitmq.py +++ b/salt/modules/rabbitmq.py @@ -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')