Remove unused decorator on attach/detach volume

There is no task state change when attaching or detaching
a volume, so there is no need to have reverts_task_state on them.

Change-Id: I0962532832b1bfebf41fd887f9d1ee332eaa028b
This commit is contained in:
Zhenguo Niu 2015-03-19 22:08:37 +08:00
parent 183cd88cb2
commit 3179337a9a
1 changed files with 0 additions and 2 deletions

View File

@ -4405,7 +4405,6 @@ class ComputeManager(manager.Manager):
return do_reserve()
@wrap_exception()
@reverts_task_state
@wrap_instance_fault
def attach_volume(self, context, instance, bdm):
"""Attach a volume to an instance."""
@ -4530,7 +4529,6 @@ class ComputeManager(manager.Manager):
self.volume_api.detach(context.elevated(), volume_id)
@wrap_exception()
@reverts_task_state
@wrap_instance_fault
def detach_volume(self, context, volume_id, instance):
"""Detach a volume from an instance."""