Commit 3a7d46d8 authored by Geoff Simmons's avatar Geoff Simmons

Update vcl.list parsing for more recent Varnish versions.

parent 43826850
Pipeline #467 failed with stages
...@@ -494,7 +494,8 @@ var ( ...@@ -494,7 +494,8 @@ var (
"busy": Busy, "busy": Busy,
"cooling": Cooling, "cooling": Cooling,
} }
vclMain = regexp.MustCompile(`^(\w+)\s+(\w+)/(\w+)\s+(\d+)\s+(\S+)`) vclMain = regexp.MustCompile(
`^(\w+)\s+(\w+)(?:/|\s+)(\w+)\s+(\d+)\s+(\S+)`)
vclLbls = regexp.MustCompile(`->\s+(\S+)\s+\((\d+)`) vclLbls = regexp.MustCompile(`->\s+(\S+)\s+\((\d+)`)
vclLblRefs = regexp.MustCompile(`(\d+)\s+labels?\)\s*$`) vclLblRefs = regexp.MustCompile(`(\d+)\s+labels?\)\s*$`)
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment