Skip to content

Commit

Permalink
Fix synchronized decorator path cleanup
Browse files Browse the repository at this point in the history
Fix bug 1047029

nova/tests/nova.compute.manager/ folder was being left behind during tests

Change-Id: If56f719ebcb1f5d1d57a2a36c5f4cb59c7a1e285
  • Loading branch information
jogo committed Sep 6, 2012
1 parent 20ae7ee commit 27c08dc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nova/utils.py
Expand Up @@ -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
Expand Down

0 comments on commit 27c08dc

Please sign in to comment.