def find_guest(name, quiet=False, path=None):
 if quiet:
  log.warning("'quiet' argument is being deprecated. Please migrate to --quiet")
 for data in _list_iter(path=path):
  (host, l) = next(six.iteritems(data))
  for x in ('running', 'frozen', 'stopped'):
   if (name in l[x]):
    if (not quiet):
     __jid_event__.fire_event({'data': host, 'outputter': 'lxc_find_host'}, 'progress')
    return host
 return None

def find_guest ( name , quiet = False , path = None ) : if quiet : log . warning ( "'quiet' argument is being deprecated. Please migrate to --quiet" ) for data in _list_iter ( path = path ) : ( host , l ) = next ( six . iteritems ( data ) ) for x in ( 'running' , 'frozen' , 'stopped' ) : if ( name in l [ x ] ) : if ( not quiet ) : __jid_event__ . fire_event ( { 'data' : host , 'outputter' : 'lxc_find_host' } , 'progress' ) return host return None
returns the host for a container .