def dump_hosts(log_dir):
    global hosts
    unique_hosts_list = []
    for host in hosts.keys():
        uuid = HL.get_value(hosts[host].hw, "system", "product", "serial")
        if unique_hosts_list not in uuid:
            unique_hosts_list.append(uuid)
    pprint.pprint(unique_hosts_list, stream=open(log_dir+"/hosts", 'w'))
    pprint.pprint(compute_affinity(), stream=open(log_dir+"/affinity", 'w'))
dataset/ETHPy150Open redhat-cip/edeploy/src/health-server.py/dump_hosts/swapped operands of `not in`