#NEWLINE# def wait_for_status( self , value , status , failures = [ ] , interval = 2 , wait = 120 ) : #NEWLINE# #INDENT# "Wait for a resource to be in a particular status.\n\n        :param value: The resource to wait on to reach the status. The\n                      resource must have a status attribute.\n        :type value: :class:`~openstack.resource.Resource`\n        :param status: Desired status of the resource.\n        :param list failures: Statuses that would indicate the transition\n                              failed such as 'ERROR'.\n        :param interval: Number of seconds to wait between checks.\n        :param wait: Maximum number of seconds to wait for the change.\n\n        :return: Method returns resource on success.\n        :raises: :class:`~openstack.exceptions.ResourceTimeout` transition\n                 to status failed to occur in wait seconds.\n        :raises: :class:`~openstack.exceptions.ResourceFailure` resource\n                 transitioned to one of the failure states.\n        :raises: :class:`~AttributeError` if the resource does not have a\n                 status attribute\n        " #NEWLINE# return resource . wait_for_status ( self . session , value , status , failures , interval , wait )