def get_version(self):
command = ["<STR_LIT>", "<STR_LIT>"]<EOL>try:<EOL><INDENT>output = subprocess.check_output(command)<EOL>version_line = output.split("<STR_LIT:\n>")[<NUM_LIT:0>]<EOL><DEDENT>except subprocess.CalledProcessError as e:<EOL><INDENT>logger.error("<STR_LIT>", str(e))<EOL>return None<EOL><DEDENT>match = version_re.match(version_line)<EOL>if not match:<EOL><INDENT>logger.error("<STR_LIT>", version_line)<EOL>return None<EOL><DEDENT>version = (<EOL>int(match.group("<STR_LIT>")),<EOL>int(match.group("<STR_LIT>")),<EOL>int(match.group("<STR_LIT>"))<EOL>)<EOL>logger.debug("<STR_LIT>", version)<EOL>return version<EOL>
Returns a tuple representing the installed HAProxy version.

The value of the tuple is (<major>, <minor>, <patch>), e.g. if HAProxy
version 1.5.3 is installed, this will return `(1, 5, 3)`.