Merge "Clear up _reschedule() return value"

This commit is contained in:
Zuul 2023-02-17 22:12:44 +00:00 committed by Gerrit Code Review
commit 126855101c

View File

@ -146,7 +146,7 @@ class OnFailureRescheduleTask(flow_utils.CinderTask):
volume.id)
def _reschedule(self, context, cause, request_spec, filter_properties,
volume):
volume) -> None:
"""Actions that happen during the rescheduling attempt occur here."""
create_volume = self.scheduler_rpcapi.create_volume
@ -170,7 +170,7 @@ class OnFailureRescheduleTask(flow_utils.CinderTask):
# Stringify to avoid circular ref problem in json serialization
retry_info['exc'] = traceback.format_exception(*cause.exc_info)
return create_volume(context, volume, request_spec=request_spec,
create_volume(context, volume, request_spec=request_spec,
filter_properties=filter_properties)
def _post_reschedule(self, volume):