diff --git a/haproxy/cmds.py b/haproxy/cmds.py index 80a9879..1af435b 100644 --- a/haproxy/cmds.py +++ b/haproxy/cmds.py @@ -194,9 +194,9 @@ def getResultObj(self, res): cols = self.getCols(res) for line in res.split('\n'): - if line.startswith(self.args['backend']): + if line.startswith(self.args['backend'] + ','): # Lines for server start with the name of the - # backend. + # backend immediately followed by a comma. outCols = line.split(',') if outCols[cols['svname']] != 'BACKEND':