]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- In unit test, print python script name list correctly.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Fri, 14 Oct 2022 14:49:57 +0000 (16:49 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Fri, 14 Oct 2022 14:49:57 +0000 (16:49 +0200)
doc/Changelog
testdata/pymod.tdir/pymod.py

index a24d1fdc232ae6be1f8340de5aad0a189c6ccbff..9c916c2979d72c95a68122962933e2357a639bcc 100644 (file)
@@ -1,6 +1,7 @@
 14 October 2022: Wouter
        - Merge #768 from fobser: Arithmetic on a pointer to void is a GNU
          extension.
+       - In unit test, print python script name list correctly.
 
 13 October 2022: Wouter
        - Tag for 1.17.0 release. The code repository continues with 1.17.1.
index a8018e7f75e7a3f96adad9e15b0c9e00ba58b707..1eb7af5b16e5a3b2d993bb48ec9c048a535a8571 100644 (file)
 import os
 
 def init(id, cfg):
-    log_info("pythonmod: init called, module id is %d port: %d script: %s" % (id, cfg.port, cfg.python_script))
+    scripts=[]
+    s = cfg.python_script
+    while s != None:
+        scripts.append(s.str)
+        s = s.next
+    log_info("pythonmod: init called, module id is %d port: %d script: %s" % (id, cfg.port, scripts))
     return True
 
 def deinit(id):