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

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 path path to the container parent default: /var/lib/lxc .