#NEWLINE# def _attached_volume_for_container( self , container , path_to_manifestations ) : #NEWLINE# #INDENT# '\n        Infer the Flocker manifestation which is in use by the given container.\n\n        :param flocker.node._docker.Unit container: The container to inspect.\n        :param dict path_to_manifestations: A mapping from mount points (as\n            ``FilePath``) to identifiers (as ``unicode``) of the datasets that\n            are mounted there.\n\n        :return: ``None`` if no Flocker manifestation can be associated with\n            the container state.  Otherwise an ``AttachedVolume`` referring to\n            that manifestation and the location in the container where it is\n            mounted.\n        ' #NEWLINE# if container . volumes : #NEWLINE# #INDENT# docker_volume = list ( container . volumes ) [ 0 ] #NEWLINE# try : #NEWLINE# #INDENT# manifestation = path_to_manifestations [ docker_volume . node_path ] #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return AttachedVolume ( manifestation = manifestation , mountpoint = container . container_path ) #NEWLINE# #UNINDENT# #UNINDENT# return None