code: def _get_rabbitmq_plugin():
      '''
      Returns the rabbitmq-plugin command path if we're running an OS that
      doesn't put it in the standard /usr/bin or /usr/local/bin
      This works by taking the rabbitmq-server version and looking for where it
      seems to be hidden in /usr/lib.
      '''
      global RABBITMQ_PLUGINS
  
      if RABBITMQ_PLUGINS is None:
          version = __salt__['pkg.version']('rabbitmq-server').split('-')[0]
          RABBITMQ_PLUGINS = ('/usr/lib/rabbitmq/lib/rabbitmq_server-{0}'
                              '/sbin/rabbitmq-plugins').format(version)
  
      return RABBITMQ_PLUGINf _get_rabbitmq_plugin():
      '''
      Returns the rabbitmq-plugin command path if we're running an OS that
      doesn't put it in the standard /usr/bin or /usr/local/bin
      This works by taking the rabbitmq-server version and looking for where it
      seems to be hidden in /usr/lib.
      '''
      global RABBITMQ_PLUGINS
  
      if RABBITMQ_PLUGINS is None:
          version = __salt__['pkg.version']('rabbitmq-server').split('-')[0]
          RABBITMQ_PLUGINS = ('/usr/lib/rabbitmq/lib/rabbitmq_server-{0}'
                              '/sbin/rabbitmq-plugins').format(version)
  
      return RABBITMQ_PLUGINS
docs: Returns the rabbitmq-plugin command path if we're running an OS that
      doesn't put it in the standard /usr/bin or /usr/local/bin
      This works by taking the rabbitmq-server version and looking for where it
      seems to be hidden in /usr/lib.