Merge pull request #1194 from GNS3/direct-file-uploads

Endpoint for obtaining direct action on compute
This commit is contained in:
Jeremy Grossmann authored and GitHub committed 2017-10-16 17:27:35 +08:00
commit 4cae6b678a
5 files changed
+69 -1

No files matched your search

+4
View File
@@ -477,6 +477,10 @@ class Compute:
host = "127.0.0.1"
return "{}://{}:{}/v2/compute{}".format(self._protocol, host, self._port, path)
def get_url(self, path):
""" Returns URL for specific path at Compute"""
return self._getUrl(path)
@asyncio.coroutine
def _run_http_query(self, method, path, data=None, timeout=20, raw=False):
with Timeout(timeout):