Allow murano to run under windows
fcntl module is only needed on non-windows OS's and is not available on windows. This commit restores ability to launch murano under windows. Implements bp: murano-engine-package-cache Change-Id: I70a17070b9c80d4f220f459a732ecf45f9d70e81
This commit is contained in:
parent
f0f758ee93
commit
39409c6ff0
|
@ -14,7 +14,6 @@
|
|||
|
||||
import contextlib
|
||||
import errno
|
||||
import fcntl
|
||||
import functools
|
||||
import os
|
||||
|
||||
|
@ -158,6 +157,7 @@ if os.name == 'nt':
|
|||
# no shared locks on windows
|
||||
SharedInterProcessLock = lockutils.InterProcessLock
|
||||
else:
|
||||
import fcntl
|
||||
|
||||
class SharedInterProcessLock(lockutils.InterProcessLock):
|
||||
def trylock(self):
|
||||
|
|
Loading…
Reference in New Issue