From 947e4af4fe15bd964e0bca9cd9f3262f35fe8b1d Mon Sep 17 00:00:00 2001 From: Johannes Erdfelt Date: Wed, 1 Feb 2012 19:20:38 +0000 Subject: [PATCH] lockfile.FileLock already appends .lock Otherwise you end up with files like nova-iptables.lock.lock Change-Id: Ia7dd82c3721f89d438c1266e7ec3535a0d89334e --- nova/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nova/utils.py b/nova/utils.py index 791c63167d..11e78ee5b6 100644 --- a/nova/utils.py +++ b/nova/utils.py @@ -826,7 +826,7 @@ def synchronized(name, external=False): 'method "%(method)s"...' % {'lock': name, 'method': f.__name__})) lock_file_path = os.path.join(FLAGS.lock_path, - 'nova-%s.lock' % name) + 'nova-%s' % name) lock = lockfile.FileLock(lock_file_path) else: lock = _NoopContextManager() -- 2.39.5