BIND 10 trac2930, updated. 88fe64ea760b7c2f4e2f5d4fdcc8c298481b46b7 [2930] Use a constant

BIND 10 source code commits bind10-changes at lists.isc.org
Tue May 21 14:38:30 UTC 2013


The branch, trac2930 has been updated
       via  88fe64ea760b7c2f4e2f5d4fdcc8c298481b46b7 (commit)
      from  143264e9d77c446e9f5d9f2611198bb73de82243 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 88fe64ea760b7c2f4e2f5d4fdcc8c298481b46b7
Author: Michal 'vorner' Vaner <michal.vaner at nic.cz>
Date:   Tue May 21 16:38:18 2013 +0200

    [2930] Use a constant

-----------------------------------------------------------------------

Summary of changes:
 src/lib/cc/proto_defs.cc               |    1 +
 src/lib/config/ccsession.cc            |    2 +-
 src/lib/python/isc/config/ccsession.py |    2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/lib/cc/proto_defs.cc b/src/lib/cc/proto_defs.cc
index 9ecaf7a..2806c2a 100644
--- a/src/lib/cc/proto_defs.cc
+++ b/src/lib/cc/proto_defs.cc
@@ -52,6 +52,7 @@ const int CC_REPLY_SUCCESS = 0;
 const char *const CC_PAYLOAD_LNAME = "lname";
 const char *const CC_PAYLOAD_RESULT = "result";
 const char *const CC_PAYLOAD_COMMAND = "command";
+const char *const CC_PAYLOAD_NOTIFICATION = "notification";
 
 }
 }
diff --git a/src/lib/config/ccsession.cc b/src/lib/config/ccsession.cc
index 85c9a01..a87be2b 100644
--- a/src/lib/config/ccsession.cc
+++ b/src/lib/config/ccsession.cc
@@ -894,7 +894,7 @@ ModuleCCSession::notify(const std::string &group, const std::string &name,
     if (params) {
         notification->add(params);
     }
-    message->set("notification", notification);
+    message->set(isc::cc::CC_PAYLOAD_NOTIFICATION, notification);
     groupSendMsg(message, isc::cc::CC_GROUP_NOTIFICATION_PREFIX + group,
                  isc::cc::CC_INSTANCE_WILDCARD,
                  isc::cc::CC_TO_WILDCARD, false);
diff --git a/src/lib/python/isc/config/ccsession.py b/src/lib/python/isc/config/ccsession.py
index 8b824b8..f0e852a 100644
--- a/src/lib/python/isc/config/ccsession.py
+++ b/src/lib/python/isc/config/ccsession.py
@@ -554,7 +554,7 @@ class ModuleCCSession(ConfigData):
         notification = [event_name]
         if params is not None:
             notification.append(params)
-        self._session.group_sendmsg({'notification': notification},
+        self._session.group_sendmsg({CC_PAYLOAD_NOTIFICATION: notification},
                                     CC_GROUP_NOTIFICATION_PREFIX +
                                     notification_group,
                                     instance=CC_INSTANCE_WILDCARD,



More information about the bind10-changes mailing list