def parse_output(output):
    """Parse fabric output and return the output per host"""

    line_pattern = re.compile('\[(?P<host>.+)\] out: (?P<line>.+)')

    results = {}
    for line in output:
        m = line_pattern.match(line)
        if m:
            host = m.group('host')
            if results not in host:
                results[host] = []
            line = m.group('line').strip()
            if line:
                results[host].append(line)

    return results
dataset/ETHPy150Open datastax/cstar_perf/tool/cstar_perf/tool/fab_common.py/parse_output/swapped operands of `not in`