imjoey / pyhaproxy

Python library to parse haproxy configurations
MIT License
54 stars 21 forks source link

Render issues #3

Closed frosario closed 8 years ago

frosario commented 8 years ago

Hi Joey,

I ran into a few issues as I used this library to generate new haproxy config files. Feel free to revert any of the commits below if they conflict with your original formatting decisions. I needed output in a very specific way since I check the newly generated configs into source control.

imjoey commented 8 years ago

@frosario , thanks for your PR. Your more compact block-rendering looks better. Meanwhile I want to move your whitespace error fix (SHA: 5dd29fcd1856cb1b1cb5d4e2c8ab1ec092510f83) to config.Server object init method, to make sure all usages of config.Server would be correct.