Browse Source

[master] fix zonemgr initialization order problem from #2967

Paul Selkirk 12 years ago
parent
commit
48aa711b39
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/bin/zonemgr/zonemgr.py.in

+ 2 - 2
src/bin/zonemgr/zonemgr.py.in

@@ -115,8 +115,6 @@ class ZonemgrRefresh:
         self._max_transfer_timeout = None
         self._refresh_jitter = None
         self._reload_jitter = None
-        self.update_config_data(module_cc.get_full_config(), module_cc)
-        self._running = False
         # This is essentially private, but we allow tests to customize it.
         self._datasrc_clients_mgr = DataSrcClientsMgr()
         # data_sources configuration should be ready with cfgmgr, so this
@@ -124,6 +122,8 @@ class ZonemgrRefresh:
         # to terminate the program.
         self._module_cc.add_remote_config_by_name('data_sources',
                                                   self._datasrc_config_handler)
+        self.update_config_data(module_cc.get_full_config(), module_cc)
+        self._running = False
 
     def _random_jitter(self, max, jitter):
         """Imposes some random jitters for refresh and