mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Add CLI example to rabbitmq.plugin_is_enabled
.
This commit is contained in:
parent
3e7fb156f5
commit
68e32853e3
@ -521,6 +521,12 @@ def policy_exists(vhost, name, runas=None):
|
||||
def plugin_is_enabled(name, runas=None):
|
||||
'''
|
||||
Return whether the plugin is enabled.
|
||||
|
||||
CLI Example:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
salt '*' rabbitmq.plugin_is_enabled foo
|
||||
'''
|
||||
ret = __salt__['cmd.run']('rabbitmq-plugins list -m -e', runas=runas)
|
||||
return bool(name in ret)
|
||||
|
Loading…
Reference in New Issue
Block a user