def find_guests(names, path=None):
    ret = {}
    names = names.split(',')
    for data in _list_iter(path=path):
        host, stat = next(six.iteritems(data))
        for state in stat:
            for name in stat[state]:
                if name in names:
                    if host in ret:
                        ret[host].append(name)
                    else:
                        ret[host] = [name]
    return ret
Return a dict of hosts and named guests
dataset/ETHPy150Open saltstack/salt/salt/runners/lxc.py/find_guests