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:
parent
6b93625a3d
commit
1c6a57d722
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user