From 55e4d4a0d74cb18e8ed88febc44e21cd1d01294b Mon Sep 17 00:00:00 2001 From: Hans Lindgren Date: Mon, 15 Apr 2013 15:41:44 +0200 Subject: 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 --- nova/db/api.py | 9 --------- 1 file changed, 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. -- cgit