try:
next_state = OpSm.get_next_state("clone", "pending", 0)
except OpSmException as oe:
- raise VolumeException(oe.error, oe.error_str)
+ raise VolumeException(oe.errno, oe.error_str)
return (next_state, False)
def sync_attrs(fs_handle, target_path, source_statx):
# jump to failed state
next_state = OpSm.get_next_state("clone", "in-progress", -1)
except OpSmException as oe:
- raise VolumeException(oe.error, oe.error_str)
+ raise VolumeException(oe.errno, oe.error_str)
return (next_state, False)
def handle_clone_failed(volume_client, volname, index, groupname, subvolname, should_cancel):