Skip to content

Commit 7326d2e

Browse files
committed
Fix riemann-haproxy with Ruby 3.0+
Ruby 3.0 fully separated keyword arguments from positional arguments. The `riemann-haproxy` tool has been broken with these versions of Ruby. Use the new syntax to unbreak the tool on these versions of Ruby.
1 parent f4424be commit 7326d2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/riemann/tools/haproxy.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def tick
4444
end
4545

4646
def csv
47-
CSV.parse(body.split('# ')[1], { headers: true })
47+
CSV.parse(body.split('# ')[1], headers: true)
4848
end
4949

5050
def body

0 commit comments

Comments
 (0)