def plugin_is_enabled(name, runas=None):
    if runas is None:
        runas = salt.utils.get_user()
    cmd = [_get_rabbitmq_plugin(), 'list', '-m', '-e']
    ret = __salt__['cmd.run_all'](cmd, python_shell=False, runas=runas)
    if ret['retcode'] != 0:
        raise CommandExecutionError(
            'RabbitMQ command failed: {0}'.format(ret['stderr'])
        )
    return bool(name in ret['stdout'])
Return whether the plugin is enabled.
dataset/ETHPy150Open saltstack/salt/salt/modules/rabbitmq.py/plugin_is_enabled