[svn] commit: r1299 - /trunk/src/bin/cfgmgr/b10-cfgmgr.py.in

BIND 10 source code commits bind10-changes at lists.isc.org
Wed Mar 10 22:58:39 UTC 2010


Author: jelte
Date: Wed Mar 10 22:58:39 2010
New Revision: 1299

Log:
check if configmanager object was created before trying to call write_config() on it when shutting down after an error (i.e. msgq not running)


Modified:
    trunk/src/bin/cfgmgr/b10-cfgmgr.py.in

Modified: trunk/src/bin/cfgmgr/b10-cfgmgr.py.in
==============================================================================
--- trunk/src/bin/cfgmgr/b10-cfgmgr.py.in (original)
+++ trunk/src/bin/cfgmgr/b10-cfgmgr.py.in Wed Mar 10 22:58:39 2010
@@ -36,4 +36,5 @@
               "is the command channel daemon running?")
     except KeyboardInterrupt as kie:
         print("Got ctrl-c, exit")
-    cm.write_config()
+    if cm:
+        cm.write_config()




More information about the bind10-changes mailing list