Ejemplo n.º 1
0
 def execute(self, ns, repository_array):
     modified = []
     for repoid in repository_array:
         try:
             repo = software.get_repository(ns, repoid)
             software.set_repository_enabled(ns, repo, enable=self.enable)
             modified.append(repoid)
         except errors.LmiFailed as err:
             LOG().warn(str(err))
     return modified
Ejemplo n.º 2
0
 def execute(self, ns, repository_array):
     modified = []
     for repoid in repository_array:
         try:
             repo = software.get_repository(ns, repoid)
             software.set_repository_enabled(ns, repo, enable=self.enable)
             modified.append(repoid)
         except errors.LmiFailed as err:
             LOG().warn(str(err))
     return modified