Merge "lockfile.FileLock already appends .lock"

This commit is contained in:
Jenkins 2012-02-01 20:42:33 +00:00 committed by Gerrit Code Review
commit aa6f6fa559

@ -821,7 +821,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()