From b6dee5df85a63ab40dc9936e549f379f9270cfd1 Mon Sep 17 00:00:00 2001 From: Szymon Jasinski Date: Mon, 18 Apr 2016 14:27:13 +0200 Subject: [PATCH] adjusting vcl_list to work with Varnish 4.1 --- varnish.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/varnish.py b/varnish.py index 148010f..8dc16ab 100644 --- a/varnish.py +++ b/varnish.py @@ -191,7 +191,7 @@ def vcl_list(self): vcls = {} for line in self.fetch('vcl.list')[1].splitlines(): a = line.split() - vcls[a[2]] = tuple(a[:-1]) + vcls[a[-1]] = tuple(a[:-1]) return vcls # Param methods