Exemple #1
0
 def add_package(self, entry):
     """ Wrappers for the similar functions from Packages class that supplementaly
         require a valid sysid.
     """
     if entry['name'].startswith("patch-solaris"):
         SolarisPatches.add_patch(self, self.server.get("id"), entry)
     return Packages.add_package(self, self.server.get("id"), entry)
 def save_packages(self, schedule=1):
     SolarisPatches.save_patched_packages(self, self.server["id"])
     ret = self.save_packages_byid(self.server["id"], schedule=schedule)
     # this function is primarily called from outside
     # so we have to commit here
     rhnSQL.commit()
     return ret
Exemple #3
0
 def save_packages(self, schedule=1):
     """ wrapper for the Packages.save_packages_byid() which requires the sysid """
     SolarisPatches.save_patched_packages(self, self.server["id"])
     ret = self.save_packages_byid(self.server["id"], schedule=schedule)
     # this function is primarily called from outside
     # so we have to commit here
     rhnSQL.commit()
     return ret
Exemple #4
0
 def dispose_packages(self):
     SolarisPatches.dispose_patched_packages(self, self.server["id"])
     return Packages.dispose_packages(self, self.server["id"])
Exemple #5
0
 def __init__(self):
     self.server = UserDictCase()
     Packages.__init__(self)
     History.__init__(self)
     Hardware.__init__(self)
     SolarisPatches.__init__(self)
 def add_package(self, entry):
     if entry['name'].startswith("patch-solaris"):
         SolarisPatches.add_patch(self, self.server.get("id"), entry)
     return Packages.add_package(self, self.server.get("id"), entry)