summaryrefslogtreecommitdiff
path: root/lib/leap_cli/macros/haproxy.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/leap_cli/macros/haproxy.rb')
-rw-r--r--lib/leap_cli/macros/haproxy.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/leap_cli/macros/haproxy.rb b/lib/leap_cli/macros/haproxy.rb
index 602ae726..3fef24c4 100644
--- a/lib/leap_cli/macros/haproxy.rb
+++ b/lib/leap_cli/macros/haproxy.rb
@@ -26,7 +26,7 @@ module LeapCli
# create a simple map for node name -> local stunnel accept port
accept_ports = stunnel_clients.inject({}) do |hsh, stunnel_entry|
- name = stunnel_entry.first.sub /_[0-9]+$/, ''
+ name = stunnel_entry.first.sub(/_[0-9]+$/, '')
hsh[name] = stunnel_entry.last['accept_port']
hsh
end