summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2013-04-17 19:11:44 +0000
committerGerrit Code Review <review@openstack.org>2013-04-17 19:11:44 +0000
commitdec1a3ad5af78a6356051d69fc6cd459edef9e1b (patch)
tree5e1145896181852293a9ea4d527b03abf9e04ff9
parentbbae7d349d24bd37f1af1c1a59c1c32b5fe01a30 (diff)
parent55e4d4a0d74cb18e8ed88febc44e21cd1d01294b (diff)
downloadnova-dec1a3ad5af78a6356051d69fc6cd459edef9e1b.tar.gz
nova-dec1a3ad5af78a6356051d69fc6cd459edef9e1b.tar.xz
nova-dec1a3ad5af78a6356051d69fc6cd459edef9e1b.zip
Merge "Remove orphaned db method instance_test_and_set"
-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.