From 27c08dc042fcd47c95ec6be22f2dad082f1eed15 Mon Sep 17 00:00:00 2001 From: Joe Gordon Date: Thu, 6 Sep 2012 13:16:36 -0700 Subject: [PATCH] Fix synchronized decorator path cleanup Fix bug 1047029 nova/tests/nova.compute.manager/ folder was being left behind during tests Change-Id: If56f719ebcb1f5d1d57a2a36c5f4cb59c7a1e285 --- nova/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/nova/utils.py b/nova/utils.py index 439be0525eb..889138d8966 100644 --- a/nova/utils.py +++ b/nova/utils.py @@ -727,6 +727,7 @@ def wrap_mkdtemp(): 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