from oslo_config import cfg
import taskflow.engines
from taskflow.patterns import linear_flow
-from taskflow.utils import misc
+from taskflow.types import failure as ft
from cinder import exception
from cinder import flow_utils
def revert(self, context, result, optional_args, **kwargs):
# We never produced a result and therefore can't destroy anything.
- if isinstance(result, misc.Failure):
+ if isinstance(result, ft.Failure):
return
if optional_args['is_quota_committed']:
def revert(self, context, result, optional_args, **kwargs):
# We never produced a result and therefore can't destroy anything.
- if isinstance(result, misc.Failure):
+ if isinstance(result, ft.Failure):
return
if optional_args['is_quota_committed']:
def revert(self, context, result, **kwargs):
# We never produced a result and therefore can't destroy anything.
- if isinstance(result, misc.Failure):
+ if isinstance(result, ft.Failure):
return
volume = result['volume_properties']
try:
self._cast_create_volume(context, request_spec, filter_properties)
def revert(self, context, result, flow_failures, **kwargs):
- if isinstance(result, misc.Failure):
+ if isinstance(result, ft.Failure):
return
# Restore the source volume status and set the volume to error status.
from oslo_config import cfg
import taskflow.engines
from taskflow.patterns import linear_flow
-from taskflow.utils import misc
+from taskflow.types import failure as ft
from cinder import exception
from cinder import flow_utils
return volume_ref
def revert(self, context, volume_id, result, **kwargs):
- if isinstance(result, misc.Failure):
+ if isinstance(result, ft.Failure):
return
common.error_out_volume(context, self.db, volume_id)
return specs
def revert(self, context, result, **kwargs):
- if isinstance(result, misc.Failure):
+ if isinstance(result, ft.Failure):
return
volume_spec = result.get('volume_spec')
# Restore the source volume status and set the volume to error status.