mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-04 14:31:13 +02:00
Revert "Merge branch 'unstable'"
This reverts commit929c337e8b, reversing changes made tob9bc73fd01.
This commit is contained in:
1 parent
d18293ae7c
commit
359abb0286
24 files changed
+217
-677
No files matched your search
@@ -44,7 +44,7 @@ class Query:
|
||||
def delete(self, path, **kwargs):
|
||||
return self._fetch("DELETE", path, **kwargs)
|
||||
|
||||
def get_url(self, path, version):
|
||||
def _get_url(self, path, version):
|
||||
if version is None:
|
||||
return "http://{}:{}{}".format(self._host, self._port, path)
|
||||
return "http://{}:{}/v{}{}".format(self._host, self._port, version, path)
|
||||
@@ -62,7 +62,7 @@ class Query:
|
||||
|
||||
@asyncio.coroutine
|
||||
def go(future):
|
||||
response = yield from aiohttp.request(method, self.get_url(path, api_version), data=body)
|
||||
response = yield from aiohttp.request(method, self._get_url(path, api_version), data=body)
|
||||
future.set_result(response)
|
||||
future = asyncio.Future()
|
||||
asyncio.async(go(future))
|
||||
|
||||
Reference in new issue
Block a user