Author: justi9
Date: 2008-09-22 07:36:16 -0400 (Mon, 22 Sep 2008)
New Revision: 2516
Modified:
mgmt/trunk/mint/python/mint/update.py
Log:
Only set the source IDs once, on object create
Modified: mgmt/trunk/mint/python/mint/update.py
===================================================================
--- mgmt/trunk/mint/python/mint/update.py 2008-09-21 21:44:54 UTC (rev 2515)
+++ mgmt/trunk/mint/python/mint/update.py 2008-09-22 11:36:16 UTC (rev 2516)
@@ -68,11 +68,7 @@
return package, cls
def processAttributes(conn, attrs, cls):
- if "id" in attrs:
- id = attrs.pop("id")
- if (not cls.__name__.endswith("Stats")):
- attrs["sourceScopeId"] = id.first
- attrs["sourceObjectId"] = id.second
+ attrs.pop("id")
if "connectionRef" in attrs:
attrs["clientConnectionRef"] = attrs.pop("connectionRef")
@@ -177,9 +173,9 @@
log.debug("%s(%i) created", cls.__name__, obj.id)
- #obj.sourceId = id
- #obj.sourceBrokerId = self.conn.brokerId
-
+ attrs["sourceScopeId"] = id.first
+ attrs["sourceObjectId"] = id.second
+
#hash = "%08x%08x%08x%08x" % unpack("!LLLL",
self.classInfo[2])
#classInfo = (self.classInfo[0], self.classInfo[1], hash)
#obj.sourceClassInfo = ",".join(classInfo)
Show replies by date