[6.0] 5458c8b83 fix vmod object constructor documentation
Dridi Boukelmoune
dridi.boukelmoune at gmail.com
Fri Feb 8 12:31:12 UTC 2019
commit 5458c8b8318c49a272e38a13bcae4d312c817880
Author: Nils Goroll <nils.goroll at uplex.de>
Date: Fri Oct 26 12:34:25 2018 +0200
fix vmod object constructor documentation
The vmod name got lost in e7c0497404a5b4aadda71aead3b0e7fe946d6993
example before/after diff:
- new xshard_param = shard_param()
+ new xshard_param = directors.shard_param()
diff --git a/lib/libvcc/vmodtool.py b/lib/libvcc/vmodtool.py
index 2ef32e78c..23f372ce7 100755
--- a/lib/libvcc/vmodtool.py
+++ b/lib/libvcc/vmodtool.py
@@ -368,11 +368,13 @@ class ProtoType(object):
pfx += pfx
s = pfx
if type(self.st) == s_object:
- s += "new x" + self.bname + " = "
+ s += "new " + self.obj + " = "
elif self.retval is not None:
s += self.retval.vcl() + " "
- if type(self.st) == s_method:
+ if type(self.st) == s_object:
+ s += self.st.vcc.modname + "." + self.name + "("
+ elif type(self.st) == s_method:
s += self.obj + self.bname + "("
else:
s += self.name + "("
More information about the varnish-commit
mailing list