def execute(self, ns, service): columns = ( 'Name', ('Enabled', 'IsEnabled'), ('Debug Level', lambda i: sssd.debug_level(i.DebugLevel))) return columns, sssd.get_service(ns, service)
def execute(self, ns, _enabled, _disabled): kind = 'all' if _enabled: kind = 'enabled' elif _disabled: kind = 'disabled' for s in sorted(sssd.list_services(ns, kind), key=lambda i: i.Name): yield (s.Name, s.IsEnabled, sssd.debug_level(s.DebugLevel))
def execute(self, ns, _enabled, _disabled): kind = 'all' if _enabled: kind = 'enabled' elif _disabled: kind = 'disabled' for s in sorted(sssd.list_backends(ns, kind), key=lambda i: i.Name): yield (s.Name, s.IsEnabled, sssd.debug_level(s.DebugLevel), sssd.get_provider(ns, 'id_provider', s))
def execute(self, ns, service): columns = ('Name', ('Enabled', 'IsEnabled'), ('Debug Level', lambda i: sssd.debug_level(i.DebugLevel))) return columns, sssd.get_service(ns, service)