예제 #1
0
    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)
예제 #2
0
    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))
예제 #3
0
    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))
예제 #4
0
    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))
예제 #5
0
    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))
예제 #6
0
    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)