summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe Gordon <jogo@cloudscaling.com>2012-09-06 13:16:36 -0700
committerJoe Gordon <jogo@cloudscaling.com>2012-09-06 13:17:57 -0700
commit27c08dc042fcd47c95ec6be22f2dad082f1eed15 (patch)
treeef6020705a33b0a6936995148b6b4d033e274f57
parent20ae7ee86ac32005012592936b763b812340cebd (diff)
downloadnova-27c08dc042fcd47c95ec6be22f2dad082f1eed15.tar.gz
nova-27c08dc042fcd47c95ec6be22f2dad082f1eed15.tar.xz
nova-27c08dc042fcd47c95ec6be22f2dad082f1eed15.zip
Fix synchronized decorator path cleanup
Fix bug 1047029 nova/tests/nova.compute.manager/ folder was being left behind during tests Change-Id: If56f719ebcb1f5d1d57a2a36c5f4cb59c7a1e285
-rw-r--r--nova/utils.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/nova/utils.py b/nova/utils.py
index 439be0525..889138d89 100644
--- a/nova/utils.py
+++ b/nova/utils.py
@@ -727,6 +727,7 @@ def synchronized(name, external=False, lock_path=None):
local_lock_path = FLAGS.lock_path or wrap_mkdtemp()
if not os.path.exists(local_lock_path):
+ cleanup_dir = True
ensure_tree(local_lock_path)
# NOTE(mikal): the lock name cannot contain directory