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 b6445077e85530b03b0f9172231b18b720b985fb
Author: Tomaz Muraus <[email protected]>
AuthorDate: Sat May 7 13:37:39 2022 +0200

    Fix lint.
---
 libcloud/common/cloudstack.py     | 4 ++--
 libcloud/compute/drivers/gce.py   | 2 ++
 libcloud/compute/drivers/voxel.py | 2 +-
 3 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/libcloud/common/cloudstack.py b/libcloud/common/cloudstack.py
index 25323798e..839ecae5a 100644
--- a/libcloud/common/cloudstack.py
+++ b/libcloud/common/cloudstack.py
@@ -220,7 +220,7 @@ class CloudStackDriverMixIn(object):
     def _sync_request(
         self, command, action=None, params=None, data=None, headers=None, 
method="GET"
     ):
-        return self.connection._sync_request(
+        return self.connection._sync_request(  # pylint: 
disable=maybe-no-member
             command=command,
             action=action,
             params=params,
@@ -239,7 +239,7 @@ class CloudStackDriverMixIn(object):
         method="GET",
         context=None,
     ):
-        return self.connection._async_request(
+        return self.connection._async_request(  # pylint: 
disable=maybe-no-member
             command=command,
             action=action,
             params=params,
diff --git a/libcloud/compute/drivers/gce.py b/libcloud/compute/drivers/gce.py
index f1b203f09..a1fd36468 100644
--- a/libcloud/compute/drivers/gce.py
+++ b/libcloud/compute/drivers/gce.py
@@ -8957,6 +8957,7 @@ class GCENodeDriver(NodeDriver):
         :type   node_attrs: ``dict``
         """
         error = None
+        code = None
         try:
             response = self.connection.request(
                 status["disk_response"]["selfLink"]
@@ -9037,6 +9038,7 @@ class GCENodeDriver(NodeDriver):
         :type   node_attrs: ``dict``
         """
         error = None
+        code = None
         try:
             response = self.connection.request(
                 status["node_response"]["selfLink"]
diff --git a/libcloud/compute/drivers/voxel.py 
b/libcloud/compute/drivers/voxel.py
index 52c0786c8..55d1f44c2 100644
--- a/libcloud/compute/drivers/voxel.py
+++ b/libcloud/compute/drivers/voxel.py
@@ -141,7 +141,7 @@ class VoxelNodeDriver(NodeDriver):
 
     features = {"create_node": [], "list_sizes": ["variable_disk"]}
 
-    _initialize_instance_types()
+    _initialize_instance_types()  # pylint: disable=too-many-function-args
 
     def list_nodes(self):
         params = {"method": "voxel.devices.list"}

Reply via email to