subakva / haproxy-tools

Ruby tools for HAProxy, including config file management.
MIT License
32 stars 14 forks source link

key-words containing Underscore-Character #19

Closed cocker-cc closed 5 years ago

cocker-cc commented 5 years ago

Keywords containing Underscore-Character will not be parsed correctly:

frontend puppet.example.com_puppetagent
    mode tcp
    bind 192.168.1.1:8140
    default_backend puppet.example.com_puppetagent

will lead to…

#<struct HAProxy::Frontend name="puppet.example.com_puppetagent", host=nil, port=nil, options={}, config={"mode"=>"tcp", "bind"=>"192.168.1.1:8140", "default"=>"_backend puppet.example.com_puppetagent"}>

… whereas the Keyword default should be default_backend here.

subakva commented 5 years ago

Just released 0.6.0 which includes this fix. Thanks!