From 3c332b895d51bb7aa114b47d7b98f0a2713996aa Mon Sep 17 00:00:00 2001 From: grossmj Date: Wed, 29 Aug 2018 16:08:08 +0700 Subject: [PATCH] Fix tests after merging. --- gns3server/controller/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gns3server/controller/__init__.py b/gns3server/controller/__init__.py index 8164c7b3..4aa78147 100644 --- a/gns3server/controller/__init__.py +++ b/gns3server/controller/__init__.py @@ -35,7 +35,7 @@ from ..version import __version__ from .topology import load_topology from .gns3vm import GNS3VM from ..utils.get_resource import get_resource -from ..utils.asyncio import locked_coroutine +from ..utils.asyncio import locking from .gns3vm.gns3_vm_error import GNS3VMError import logging @@ -64,7 +64,8 @@ class Controller: self._config_file = os.path.join(Config.instance().config_dir, "gns3_controller.conf") log.info("Load controller configuration file {}".format(self._config_file)) - @locked_coroutine + @locking + @asyncio.coroutine def download_appliance_templates(self): session = aiohttp.ClientSession()