summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--nova/db/api.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/nova/db/api.py b/nova/db/api.py
index c1d28e33a..4c00f05f9 100644
--- a/nova/db/api.py
+++ b/nova/db/api.py
@@ -654,15 +654,6 @@ def instance_get_all_hung_in_rebooting(context, reboot_window):
return IMPL.instance_get_all_hung_in_rebooting(context, reboot_window)
-def instance_test_and_set(context, instance_uuid, attr, ok_states,
- new_state):
- """Atomically check if an instance is in a valid state, and if it is, set
- the instance into a new state.
- """
- return IMPL.instance_test_and_set(context, instance_uuid, attr,
- ok_states, new_state)
-
-
def instance_update(context, instance_uuid, values, update_cells=True):
"""Set the given properties on an instance and update it.