Browse Source

[master] update xfrin to last API change

Jelte Jansen 13 years ago
parent
commit
32007ad7c9
1 changed files with 6 additions and 1 deletions
  1. 6 1
      src/bin/xfrin/xfrin.py.in

+ 6 - 1
src/bin/xfrin/xfrin.py.in

@@ -792,7 +792,12 @@ def process_xfrin(server, xfrin_recorder, zone_name, rrclass, db_file,
     # this code will be much cleaner.
     datasrc_client = None
     if db_file is not None:
-        datasrc_client = DataSourceClient(db_file)
+        # temporary hardcoded sqlite initialization. Once we decide on
+        # the config specification, we need to update this (TODO)
+        # this may depend on #1207, or any followup ticket created for #1207
+        datasrc_type = "sqlite3"
+        datasrc_config = "{ \"database_file\": \"" + db_file + "\"}"
+        datasrc_client = DataSourceClient(datasrc_type, datasrc_config)
 
     # Create a TCP connection for the XFR session and perform the operation.
     sock_map = {}