lockfile.FileLock already appends .lock
Otherwise you end up with files like nova-iptables.lock.lock Change-Id: Ia7dd82c3721f89d438c1266e7ec3535a0d89334e
This commit is contained in:
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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user