def get_info(self):
info_response = self.send_command("<STR_LIT>")<EOL>if not info_response:<EOL><INDENT>return {}<EOL><DEDENT>def convert_camel_case(string):<EOL><INDENT>return all_cap_re.sub(<EOL>r'<STR_LIT>',<EOL>first_cap_re.sub(r'<STR_LIT>', string)<EOL>).lower()<EOL><DEDENT>return dict(<EOL>(convert_camel_case(label), value)<EOL>for label, value in [<EOL>line.split("<STR_LIT>")<EOL>for line in info_response.split("<STR_LIT:\n>")<EOL>]<EOL>)<EOL>
Parses the output of a "show info" HAProxy command and returns a
simple dictionary of the results.