Author: justi9
Date: 2008-08-21 13:42:43 -0400 (Thu, 21 Aug 2008)
New Revision: 2338
Modified:
mgmt/trunk/mint/python/mint/__init__.py
mgmt/trunk/mint/python/mint/update.py
Log:
A workaround for the changed id data
Modified: mgmt/trunk/mint/python/mint/__init__.py
===================================================================
--- mgmt/trunk/mint/python/mint/__init__.py 2008-08-21 17:13:38 UTC (rev 2337)
+++ mgmt/trunk/mint/python/mint/__init__.py 2008-08-21 17:42:43 UTC (rev 2338)
@@ -150,6 +150,8 @@
self.mchan = None
def getObject(self, cls, id):
+ id = id.second # XXX new id hack
+
try:
obj = self.objectsById[id]
except KeyError:
Modified: mgmt/trunk/mint/python/mint/update.py
===================================================================
--- mgmt/trunk/mint/python/mint/update.py 2008-08-21 17:13:38 UTC (rev 2337)
+++ mgmt/trunk/mint/python/mint/update.py 2008-08-21 17:42:43 UTC (rev 2338)
@@ -63,7 +63,9 @@
def processAttributes(conn, attrs, cls):
if "id" in attrs:
- attrs["idOriginal"] = attrs.pop("id")
+ # XXX new id hack
+ idorig = attrs.pop("id").second
+ attrs["idOriginal"] = idorig
if "connectionRef" in attrs:
attrs["clientConnectionRef"] = attrs.pop("connectionRef")
Show replies by date