Author: tedross
Date: 2008-03-27 17:43:45 -0400 (Thu, 27 Mar 2008)
New Revision: 1809
Modified:
mgmt/mint/python/mint/__init__.py
Log:
Use more streamlined management API, fixed some typos
Modified: mgmt/mint/python/mint/__init__.py
===================================================================
--- mgmt/mint/python/mint/__init__.py 2008-03-27 20:17:14 UTC (rev 1808)
+++ mgmt/mint/python/mint/__init__.py 2008-03-27 21:43:45 UTC (rev 1809)
@@ -194,13 +194,8 @@
self.model.connections[self.key] = self
self.client.start({})
- self.mchan = managementChannel(self.client.channel(1),
- self.mclient.topicCb,
- self.mclient.replyCb,
- self.key)
+ self.mchan = self.mclient.addChannel (self.client.channel(1), self.key)
- self.mclient.addChannel(self.mchan)
-
self.state = "opened"
except Exception, e:
self.exception = e
@@ -325,7 +320,7 @@
try:
obj.set(**d)
except TypeError, detail:
- self.log("Schema mismatch: %s" % details)
+ self.log("Schema mismatch: %s" % detail)
obj.syncUpdate()
self.log("END
CONFIG---------------------------------------------------\n")
@@ -348,7 +343,7 @@
try:
objStats.set(**d)
except TypeError, detail:
- self.log("Schema mismatch: %s" % details)
+ self.log("Schema mismatch: %s" % detail)
objStats.syncUpdate()
d = dict()
@@ -360,7 +355,7 @@
try:
obj.set(**d)
except TypeError, detail:
- self.log("Schema mismatch: %s" % details)
+ self.log("Schema mismatch: %s" % detail)
obj.syncUpdate()
self.log("END INST---------------------------------------------------\n")
Show replies by date