Ejemplo n.º 1
0
 def execute(self, ns, _all, _disabled, _oneshot):
     kind = 'enabled'
     if _all:
         kind = 'all'
     elif _disabled:
         kind = 'disabled'
     elif _oneshot:
         kind = 'oneshot'
     for service_inst in srv.list_services(ns, kind):
         yield service_inst
Ejemplo n.º 2
0
 def execute(self, ns, _all, _disabled, _oneshot):
     kind = 'enabled'
     if _all:
         kind = 'all'
     elif _disabled:
         kind = 'disabled'
     elif _oneshot:
         kind = 'oneshot'
     for service_inst in srv.list_services(ns, kind):
         yield service_inst
Ejemplo n.º 3
0
 def generator():
     for service_inst in srv.list_services(ns, kind):
         yield service_inst
Ejemplo n.º 4
0
 def generator():
     for service_inst in srv.list_services(ns, kind):
         yield service_inst