Skip to content

Commit e48fad5

Browse files
committed
"Adjusting vcl_list to work with Varnish 4.1" per justquick#26
1 parent 8f114c7 commit e48fad5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

varnish.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def vcl_list(self):
191191
vcls = {}
192192
for line in self.fetch('vcl.list')[1].splitlines():
193193
a = line.split()
194-
vcls[a[2]] = tuple(a[:-1])
194+
vcls[a[-1]] = tuple(a[:-1])
195195
return vcls
196196

197197
# Param methods

0 commit comments

Comments
 (0)