Repository: libcloud Updated Branches: refs/heads/trunk a1ebd1448 -> 4838f23fd
Remove 'async' entirely as it's always False and only used in private methods. Signed-off-by: Quentin Pradet <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/a5308525 Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/a5308525 Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/a5308525 Branch: refs/heads/trunk Commit: a530852501e702ad23c5a8df71c830c0bb9a5803 Parents: 4565069 Author: Andreas Hasenack <[email protected]> Authored: Mon Aug 27 12:07:59 2018 -0300 Committer: Quentin Pradet <[email protected]> Committed: Mon Aug 27 19:20:04 2018 +0400 ---------------------------------------------------------------------- libcloud/compute/drivers/azure.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/a5308525/libcloud/compute/drivers/azure.py ---------------------------------------------------------------------- diff --git a/libcloud/compute/drivers/azure.py b/libcloud/compute/drivers/azure.py index bd88e5f..c915919 100644 --- a/libcloud/compute/drivers/azure.py +++ b/libcloud/compute/drivers/azure.py @@ -1435,7 +1435,7 @@ class AzureNodeDriver(NodeDriver): return response - def _perform_post(self, path, body, response_type=None, async_=False): + def _perform_post(self, path, body, response_type=None): request = AzureHTTPRequest() request.method = 'POST' request.host = AZURE_SERVICE_MANAGEMENT_HOST @@ -1447,7 +1447,7 @@ class AzureNodeDriver(NodeDriver): return response - def _perform_put(self, path, body, response_type=None, async_=False): + def _perform_put(self, path, body, response_type=None): request = AzureHTTPRequest() request.method = 'PUT' request.host = AZURE_SERVICE_MANAGEMENT_HOST @@ -1459,7 +1459,7 @@ class AzureNodeDriver(NodeDriver): return response - def _perform_delete(self, path, async_=False): + def _perform_delete(self, path): request = AzureHTTPRequest() request.method = 'DELETE' request.host = AZURE_SERVICE_MANAGEMENT_HOST @@ -1470,9 +1470,6 @@ class AzureNodeDriver(NodeDriver): self.raise_for_response(response, 202) - if async_: - return self._parse_response_for_async_op(response) - def _perform_request(self, request): try: return self.connection.request(
