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:
Kirill Zaitsev 2016-02-01 16:57:25 +03:00
parent f0f758ee93
commit 39409c6ff0
1 changed files with 1 additions and 1 deletions

View File

@ -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):