#NEWLINE# def find_guest( name , quiet = False , path = None ) : #NEWLINE# #INDENT# '\n    Returns the host for a container.\n\n    path\n        path to the container parent\n        default: /var/lib/lxc (system default)\n\n        .. versionadded:: 2015.8.0\n\n\n    .. code-block:: bash\n\n        salt-run lxc.find_guest name\n    ' #NEWLINE# if quiet : #NEWLINE# #INDENT# log . warning ( "'quiet' argument is being deprecated. Please migrate to --quiet" ) #NEWLINE# #UNINDENT# for data in _list_iter ( path = path ) : #NEWLINE# #INDENT# ( host , l ) = next ( six . iteritems ( data ) ) #NEWLINE# for x in ( 'running' , 'frozen' , 'stopped' ) : #NEWLINE# #INDENT# if ( name in l [ path ] ) : #NEWLINE# #INDENT# if ( not quiet ) : #NEWLINE# #INDENT# __jid_event__ . fire_event ( { #NEWLINE# #INDENT# 'data' : host , #NEWLINE# 'outputter' : 'lxc_find_host' , #NEWLINE# #UNINDENT# } , 'progress' ) #NEWLINE# #UNINDENT# return host #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return None