Skip to content

Commit

Permalink
allow server_port_override to be an int since the other port
Browse files Browse the repository at this point in the history
config options can be ints
  • Loading branch information
dcosson committed Sep 11, 2015
1 parent 45fde7f commit c59116e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/synapse/service_watcher/ec2tag.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def validate_discovery_opts
"Missing server_port_override for service #{@name} - which port are backends listening on?"
end

unless @haproxy['server_port_override'].match(/^\d+$/)
unless @haproxy['server_port_override'].to_s.match(/^\d+$/)
raise ArgumentError, "Invalid server_port_override value"
end

Expand Down

0 comments on commit c59116e

Please sign in to comment.