unixsurfer / haproxyadmin

A python library to interact with HAProxy over UNIX socket
Apache License 2.0
113 stars 31 forks source link

`show_map(map)` should return a list of tuples #5

Closed nfirvine closed 5 years ago

nfirvine commented 8 years ago

It returns ['<id> <key> <value>', ...]. Any reason not to return something like [(id, key, value), ...]?

unixsurfer commented 5 years ago

To be honest, I didn't have a specific reason back then. Do you see any benefits returning a tuple?

nfirvine commented 5 years ago

Jeez, I haven't worked on Haproxy stuff for ages. The tuple part doesn't matter so much, just that it's parsed.