You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2020/10/04 15:39:33 UTC

[libcloud] 14/14: Fix lint.

This is an automated email from the ASF dual-hosted git repository.

tomaz pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/libcloud.git

commit 545e208cd90c90ecaca69be139320ef18728313f
Author: Tomaz Muraus <to...@tomaz.me>
AuthorDate: Sun Oct 4 17:36:55 2020 +0200

    Fix lint.
---
 libcloud/common/ovh.py | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/libcloud/common/ovh.py b/libcloud/common/ovh.py
index a9c11af..778c352 100644
--- a/libcloud/common/ovh.py
+++ b/libcloud/common/ovh.py
@@ -140,9 +140,11 @@ class OvhConnection(ConnectionUserAndKey):
         httpcon = LibcloudConnection(host=self.host, port=443)
 
         try:
-            httpcon.request(method='POST', url=action, body=data, headers=headers)
+            httpcon.request(method='POST', url=action, body=data,
+                            headers=headers)
         except requests.exceptions.ConnectionError as e:
-            handle_and_rethrow_user_friendly_invalid_region_error(host=self.host, e=e)
+            handle_and_rethrow_user_friendly_invalid_region_error(
+                host=self.host, e=e)
 
         response = OvhResponse(httpcon.getresponse(), httpcon)
 
@@ -210,9 +212,10 @@ class OvhConnection(ConnectionUserAndKey):
         try:
             return super(OvhConnection, self)\
                 .request(action, params=params, data=data, headers=headers,
-                        method=method, raw=raw)
+                         method=method, raw=raw)
         except requests.exceptions.ConnectionError as e:
-            handle_and_rethrow_user_friendly_invalid_region_error(host=self.host, e=e)
+            handle_and_rethrow_user_friendly_invalid_region_error(
+                host=self.host, e=e)
 
 
 def handle_and_rethrow_user_friendly_invalid_region_error(host, e):