subakva / haproxy-tools

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

Fix add_server attributes #3

Closed wpeterson closed 12 years ago

wpeterson commented 12 years ago

When you call add_server(name, host, options) without specifying a template server or attributes, the attributes collection is left un-initialized and the render call fails with a nil-dereference.

Change add_server() to default to empty attributes array.