Browse Source

two more fixes for capital and .py.in move

git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@696 e5f2f494-b856-4b98-b285-d166d9295462
Jelte Jansen 15 years ago
parent
commit
2e1dd5c36f
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/bin/cfgmgr/b10-cfgmgr.py.in
  2. 1 1
      src/bin/cfgmgr/cfgmgr.py

+ 1 - 1
src/bin/cfgmgr/b10-cfgmgr.py.in

@@ -30,7 +30,7 @@ if __name__ == "__main__":
         cm.read_config()
         cm.notify_boss()
         cm.run()
-    except ISC.CC.SessionError as se:
+    except isc.cc.SessionError as se:
         print("[bind-cfgd] Error creating config manager, "
               "is the command channel daemon running?")
     except KeyboardInterrupt as kie:

+ 1 - 1
src/bin/cfgmgr/cfgmgr.py

@@ -21,7 +21,7 @@ class ConfigManagerData:
     def read_from_file(data_path):
         config = ConfigManagerData(data_path)
         try:
-            file = open(self.db_filename, 'r')
+            file = open(config.db_filename, 'r')
             file_config = ast.literal_eval(file.read())
             if 'version' in file_config and \
                 file_config['version'] == ConfigManagerData.CONFIG_VERSION: