Add CLI example to rabbitmq.plugin_is_enabled.

This commit is contained in:
Pedro Algarvio 2013-11-09 10:40:45 +00:00
parent 3e7fb156f5
commit 68e32853e3

View File

@ -521,6 +521,12 @@ def policy_exists(vhost, name, runas=None):
def plugin_is_enabled(name, runas=None): def plugin_is_enabled(name, runas=None):
''' '''
Return whether the plugin is enabled. 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) ret = __salt__['cmd.run']('rabbitmq-plugins list -m -e', runas=runas)
return bool(name in ret) return bool(name in ret)