]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[master] update xfrin to last API change
authorJelte Jansen <jelte@isc.org>
Mon, 10 Oct 2011 13:18:12 +0000 (15:18 +0200)
committerJelte Jansen <jelte@isc.org>
Mon, 10 Oct 2011 13:18:12 +0000 (15:18 +0200)
src/bin/xfrin/xfrin.py.in

index dd755918dbcf49717a3f6347966e6c23aae1a0bc..0effc4040a3b471312ff98e3c75dee30338e0746 100755 (executable)
@@ -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 = {}