Commit 85c1f7f9 authored by Yingjie Xu's avatar Yingjie Xu

Drop scripts.

We maintain time stamps locally.
parent 16771633
...@@ -39,20 +39,6 @@ class Agent: ...@@ -39,20 +39,6 @@ class Agent:
portal = xmlrpclib.ServerProxy(self.portal_url, allow_none=1) portal = xmlrpclib.ServerProxy(self.portal_url, allow_none=1)
return safeRpcCall(portal, "Agent_getInstallingSoftwareReleaseReferenceListOnComputer", computer, self.software_release_list) return safeRpcCall(portal, "Agent_getInstallingSoftwareReleaseReferenceListOnComputer", computer, self.software_release_list)
def getSoftwareReleaseCleanupStartDateOnComputer(self, computer, software_release):
portal = xmlrpclib.ServerProxy(self.portal_url, allow_none=1)
start_date_string = safeRpcCall(portal, "Agent_getSoftwareReleaseCleanupStartDateOnComputer", computer, software_release)
if start_date_string is not None:
return datetime.strptime(start_date_string, "%Y-%m-%dT%H:%M:%S")
return None
def getSoftwareReleaseSetupStartDateOnComputer(self, computer, software_release):
portal = xmlrpclib.ServerProxy(self.portal_url, allow_none=1)
start_date_string = safeRpcCall(portal, "Agent_getSoftwareReleaseSetupStartDateOnComputer", computer, software_release)
if start_date_string is not None:
return datetime.strptime(start_date_string, "%Y-%m-%dT%H:%M:%S")
return None
def getSoftwareReleaseUsageOnComputer(self, computer, software_release): def getSoftwareReleaseUsageOnComputer(self, computer, software_release):
portal = xmlrpclib.ServerProxy(self.portal_url, allow_none=1) portal = xmlrpclib.ServerProxy(self.portal_url, allow_none=1)
return safeRpcCall(portal, "Agent_getSoftwareReleaseUsageOnComputer", computer, software_release) return safeRpcCall(portal, "Agent_getSoftwareReleaseUsageOnComputer", computer, software_release)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment