summaryrefslogtreecommitdiffstats
path: root/nova
diff options
context:
space:
mode:
authorHans Lindgren <hanlind@kth.se>2013-04-15 15:41:44 +0200
committerHans Lindgren <hanlind@kth.se>2013-04-15 15:50:19 +0200
commit55e4d4a0d74cb18e8ed88febc44e21cd1d01294b (patch)
tree08540a53a37909f73736f6fb516291f18d13d20b /nova
parent36b10384724fec9657784980cd2bd38e72b445bc (diff)
Remove orphaned db method instance_test_and_set
Commit 86544fad81f95b74407a76bea8b081f490e2832f removed the only use of this method together with the sqlalchemy implementation of it but forgot to remove it from db.api. Change-Id: I751f99ee64cdeab56f1f3fd9f846157f241804a2
Diffstat (limited to 'nova')
-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.