def execute(self, ns, group, users):
     group_inst = account.get_group(ns, group)
     user_insts = []
     for user in users:
         user_inst = account.get_user(ns, user)
         user_insts.append(user_inst)
     account.remove_from_group(ns, group_inst, user_insts)
Exemple #2
0
 def execute(self, ns, group, users):
     group_inst = account.get_group(ns, group)
     user_insts = []
     for user in users:
         user_inst = account.get_user(ns, user)
         user_insts.append(user_inst)
     account.remove_from_group(ns, group_inst, user_insts)
 def execute(self, ns, users):
     if users:
         for user in users:
             inst = account.get_user(ns, user)
             yield inst
     else:
         for user in account.list_users(ns):
             yield user
Exemple #4
0
 def execute(self, ns, users):
     if users:
         for user in users:
             inst = account.get_user(ns, user)
             yield inst
     else:
         for user in account.list_users(ns):
             yield user
Exemple #5
0
 def execute(self,
             ns,
             users,
             no_delete_group=False,
             no_delete_home=False,
             force=False):
     for user in users:
         inst = account.get_user(ns, user)
         account.delete_user(ns, inst, no_delete_group, no_delete_home,
                             force)
 def execute(self, ns, users, no_delete_group=False, no_delete_home=False,
         force=False):
     for user in users:
         inst = account.get_user(ns, user)
         account.delete_user(ns, inst, no_delete_group, no_delete_home,
                 force)