unixsurfer / haproxyadmin

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

python 2.6 raised ValueError: zero length field name in format #1

Closed vovolie closed 8 years ago

vovolie commented 8 years ago
csv_data = self.command('show stat {} {} {}'.format(iid, obj_type, sid),
                                full_output=True)

temporary fix

csv_data = self.command('show stat {0} {1} {2}'.format(iid, obj_type, sid), full_output=True)
unixsurfer commented 8 years ago

Hello there, I am on vacation and far a way from a computer. So, I will check it when I am back in a week.

Cheers, Pavlos

vovolie commented 8 years ago

awesome!