summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-09-07 09:28:21 +0000
committerGerrit Code Review <review@openstack.org>2012-09-07 09:28:21 +0000
commitd7e2b2ee09ff590fc930f2aafeec1e9338f57f52 (patch)
tree939efe87985998089e5f8585f67ddf9e54c41d00
parentcb63eb9533609007c5b3be64ca2c859110d2502e (diff)
parent27c08dc042fcd47c95ec6be22f2dad082f1eed15 (diff)
downloadnova-d7e2b2ee09ff590fc930f2aafeec1e9338f57f52.tar.gz
nova-d7e2b2ee09ff590fc930f2aafeec1e9338f57f52.tar.xz
nova-d7e2b2ee09ff590fc930f2aafeec1e9338f57f52.zip
Merge "Fix synchronized decorator path cleanup"
-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