Merge "Remove unnecessary wrapper for 5 compute APIs"
This commit is contained in:
commit
9aee382c5b
|
@ -3029,7 +3029,6 @@ class ComputeManager(manager.Manager):
|
|||
|
||||
@object_compat
|
||||
@wrap_exception()
|
||||
@reverts_task_state
|
||||
@wrap_instance_fault
|
||||
def change_instance_metadata(self, context, diff, instance):
|
||||
"""Update the metadata published to the instance."""
|
||||
|
@ -3601,7 +3600,6 @@ class ComputeManager(manager.Manager):
|
|||
|
||||
@object_compat
|
||||
@wrap_exception()
|
||||
@reverts_task_state
|
||||
@wrap_instance_fault
|
||||
def add_fixed_ip_to_instance(self, context, network_id, instance):
|
||||
"""Calls network_api to add new fixed_ip to instance
|
||||
|
@ -3626,7 +3624,6 @@ class ComputeManager(manager.Manager):
|
|||
|
||||
@object_compat
|
||||
@wrap_exception()
|
||||
@reverts_task_state
|
||||
@wrap_instance_fault
|
||||
def remove_fixed_ip_from_instance(self, context, address, instance):
|
||||
"""Calls network_api to remove existing fixed_ip from instance
|
||||
|
@ -3937,7 +3934,6 @@ class ComputeManager(manager.Manager):
|
|||
instance.save(expected_task_state=task_states.SPAWNING)
|
||||
self._notify_about_instance_usage(context, instance, 'unshelve.end')
|
||||
|
||||
@reverts_task_state
|
||||
@wrap_instance_fault
|
||||
def reset_network(self, context, instance):
|
||||
"""Reset networking on the given instance."""
|
||||
|
@ -4421,7 +4417,6 @@ class ComputeManager(manager.Manager):
|
|||
raise exception.NotFound(_("Host %s not found") % host)
|
||||
|
||||
@wrap_exception()
|
||||
@wrap_instance_fault
|
||||
def check_instance_shared_storage(self, ctxt, instance, data):
|
||||
"""Check if the instance files are shared
|
||||
|
||||
|
|
Loading…
Reference in New Issue