From 39409c6ff04a5e0d2db4e6a31aeb4ac161dc6b4f Mon Sep 17 00:00:00 2001 From: Kirill Zaitsev Date: Mon, 1 Feb 2016 16:57:25 +0300 Subject: [PATCH] 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 --- murano/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/murano/utils.py b/murano/utils.py index 061cbfb41..6d5e2e5c3 100644 --- a/murano/utils.py +++ b/murano/utils.py @@ -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):