[svn] commit: r252 - /branches/f2f200910/src/lib/bigtool/bigtool.py
BIND 10 source code commits
bind10-changes at lists.isc.org
Fri Oct 30 20:01:12 UTC 2009
Author: zhanglikun
Date: Fri Oct 30 20:01:12 2009
New Revision: 252
Log:
change the format of message.
Modified:
branches/f2f200910/src/lib/bigtool/bigtool.py
Modified: branches/f2f200910/src/lib/bigtool/bigtool.py
==============================================================================
--- branches/f2f200910/src/lib/bigtool/bigtool.py (original)
+++ branches/f2f200910/src/lib/bigtool/bigtool.py Fri Oct 30 20:01:12 2009
@@ -224,22 +224,17 @@
if not self.cc:
return
- instance = '*'
+ groupName = (cmd.module == 'boss') and 'Boss' or 'ConfigManager'
content = [cmd.module, cmd.command]
- groupName = 'ConfigManager'
values = cmd.params.values()
- if cmd.module == 'boss':
- groupName = "Boss"
- instance = list(values)[0]
- else:
- if len(values) > 0:
- content.append(list(values)[0])
+ if len(values) > 0:
+ content.append(list(values)[0])
msg = {"command":content}
print("begin to send the message...")
try:
- self.cc.group_sendmsg(msg, groupName, instance)
+ self.cc.group_sendmsg(msg, groupName, instance = 'boss')
print("waiting for %s reply..." % groupName)
reply, env = self.cc.group_recvmsg(False)
More information about the bind10-changes
mailing list