[master] 4a6430b Fix a bug which prevents multiple objects per vmod

Poul-Henning Kamp phk at varnish-cache.org
Wed Mar 6 20:18:39 CET 2013


commit 4a6430bb61544654bc21e15c16ae921a1b0bb1c6
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Wed Mar 6 19:18:23 2013 +0000

    Fix a bug which prevents multiple objects per vmod

diff --git a/lib/libvcl/vmodtool.py b/lib/libvcl/vmodtool.py
index 97fd398..7a3b0b1 100755
--- a/lib/libvcl/vmodtool.py
+++ b/lib/libvcl/vmodtool.py
@@ -321,7 +321,7 @@ class obj(object):
 		fo.write(self.st + ";\n")
 		self.init.c_proto(fo)
 		self.fini.c_proto(fo)
-		for m in o.methods:
+		for m in self.methods:
 			m.c_proto(fo)
 
 	def c_struct(self, modnam):



More information about the varnish-commit mailing list