lockfile.FileLock already appends .lock

Otherwise you end up with files like nova-iptables.lock.lock

Change-Id: Ia7dd82c3721f89d438c1266e7ec3535a0d89334e
This commit is contained in:
Johannes Erdfelt 2012-02-01 19:20:38 +00:00
parent 40ccefa987
commit bf5b0f5eef

@ -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()