]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix python example0 return module wait instead of error for pass.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 29 Jun 2017 07:28:11 +0000 (07:28 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 29 Jun 2017 07:28:11 +0000 (07:28 +0000)
git-svn-id: file:///svn/unbound/trunk@4253 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
pythonmod/doc/examples/example0-1.py
pythonmod/doc/examples/example0.rst

index e3cf66431cdb58b2ba0240841c417d80efa5a4a0..8c49dad87e76e129c0f31ae903587d0d2f31c0a8 100644 (file)
@@ -1,3 +1,6 @@
+29 June 2017: Wouter
+       - Fix python example0 return module wait instead of error for pass.
+
 27 June 2017: Wouter
        - Tag 1.6.4 is created with the 1.6.4rc2 contents.
        - Trunk contains 1.6.5, with changes from 26, 27 june.
index 3b234f1e099c513c5e83fb496627157dfa10ddbc..5ae48d16674aedc1e1e0c1dd9a997e0e9ea64ccf 100644 (file)
@@ -24,7 +24,7 @@ def operate(id, event, qstate, qdata):
 
    if event == MODULE_EVENT_PASS:
       log_info("pythonmod: event_pass")
-      qstate.ext_state[id] = MODULE_ERROR 
+      qstate.ext_state[id] = MODULE_WAIT_MODULE 
       return True
 
    log_err("pythonmod: BAD event")
index 80eca5ea6ebbfd13d90e0788a48058aad91c4eb0..8fff41f33c7256ab1197302993c4b32b4080c722 100644 (file)
@@ -109,7 +109,7 @@ Script file must contain four compulsory functions:
          return True
 
       if event == MODULE_EVENT_PASS:
-         qstate.ext_state[id] = MODULE_ERROR 
+         qstate.ext_state[id] = MODULE_WAIT_MODULE 
          return True
 
       log_err("pythonmod: BAD event")