def plugin_is_enabled(name, runas=None):
 if ((runas is None) and (not salt.utils.is_windows())):
  runas = salt.utils.get_user()
 return (name in list_enabled_plugins(runas))

def plugin_is_enabled ( name , runas = None ) : if ( ( runas is None ) and ( not salt . utils . is_windows ( ) ) ) : runas = salt . utils . get_user ( ) return ( name in list_enabled_plugins ( runas ) )
return whether the plugin is enabled .