Remove reverts_task_state decorator from swap_volume
We never change the instance task_state during a swap volume operation, so there is no reason to use the reverts_task_state decorator, as there is nothing to revert back to in case of a failure. Change-Id: I437ecb16682d69f83e6ec4fe0ca54fcc168ff448
This commit is contained in:
parent
aa74748d9f
commit
57a8c5e7fd
|
@ -5098,7 +5098,6 @@ class ComputeManager(manager.Manager):
|
|||
return (comp_ret, new_cinfo)
|
||||
|
||||
@wrap_exception()
|
||||
@reverts_task_state
|
||||
@wrap_instance_fault
|
||||
def swap_volume(self, context, old_volume_id, new_volume_id, instance):
|
||||
"""Swap volume for an instance."""
|
||||
|
|
Loading…
Reference in New Issue