Fix HBSD horcm driver with oslo.concurrency 2.1.0

The oslo.concurrency 2.1.0 has replaced locks and replaced with fasteners which
means that locking stuff has moved to a generic 3rd party lib. This lib uses
the variable "path" instead of "fname".

Closes-bug: #1470112
Change-Id: I8b844c827c940a01da9cd97d8f69b3a7e42f706c
This commit is contained in:
marcusvrn 2015-07-01 15:03:40 -03:00
parent 6b93625a3d
commit 1c6a57d722

View File

@ -198,10 +198,6 @@ class FileLock(lockutils.InterProcessLock):
super(FileLock, self).__init__(name)
def __enter__(self):
if not os.access(self.fname, os.W_OK):
msg = output_err(633, file=self.fname)
raise exception.HBSDError(message=msg)
self.lock_object.acquire()
try: