You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by an...@apache.org on 2018/10/31 03:11:52 UTC
[41/51] [abbrv] libcloud git commit: fixed pylint issues in
compute/drivers/dimensiondata.py
fixed pylint issues in compute/drivers/dimensiondata.py
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/a9773905
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/a9773905
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/a9773905
Branch: refs/heads/trunk
Commit: a977390546cb27c0bb07539f6764772cdf674437
Parents: f34d98e
Author: mitch <mi...@itaas.dimensiondata.com>
Authored: Thu Oct 25 12:24:34 2018 -0400
Committer: mitch <mi...@itaas.dimensiondata.com>
Committed: Thu Oct 25 12:24:34 2018 -0400
----------------------------------------------------------------------
docs/compute/drivers/nttcis.rst | 2 +-
libcloud/common/nttcis.py | 2 +-
libcloud/compute/drivers/dimensiondata.py | 12 +++++++-----
libcloud/http.py | 1 -
4 files changed, 9 insertions(+), 8 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/libcloud/blob/a9773905/docs/compute/drivers/nttcis.rst
----------------------------------------------------------------------
diff --git a/docs/compute/drivers/nttcis.rst b/docs/compute/drivers/nttcis.rst
index 852ecb5..96160ce 100644
--- a/docs/compute/drivers/nttcis.rst
+++ b/docs/compute/drivers/nttcis.rst
@@ -6,7 +6,7 @@ NTT-CIS provides IT-as-a-Service to customers around the globe on their
cloud platform (Compute as a Service). The CaaS service is available either on
one a hybrid cloud instance or as a private instance on premises.
-.. figure:: /_static/images/provider_logos/nttcis.png
+.. figure:: /_static/images/provider_logos/ntt.png
:align: center
:width: 300
:target: http://www.ntt.com/en/services/cloud/enterprise-cloud.html/
http://git-wip-us.apache.org/repos/asf/libcloud/blob/a9773905/libcloud/common/nttcis.py
----------------------------------------------------------------------
diff --git a/libcloud/common/nttcis.py b/libcloud/common/nttcis.py
index cac7123..2419c79 100644
--- a/libcloud/common/nttcis.py
+++ b/libcloud/common/nttcis.py
@@ -15,7 +15,7 @@
"""
NTTCIS Common Components
"""
-from io import BytesIO
+
from base64 import b64encode
from time import sleep
# TODO: use disutils.version when Travis CI fixed the pylint issue with version
http://git-wip-us.apache.org/repos/asf/libcloud/blob/a9773905/libcloud/compute/drivers/dimensiondata.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/dimensiondata.py b/libcloud/compute/drivers/dimensiondata.py
index cc223c5..3e04cfc 100644
--- a/libcloud/compute/drivers/dimensiondata.py
+++ b/libcloud/compute/drivers/dimensiondata.py
@@ -4495,15 +4495,17 @@ class DimensionDataNodeDriver(NodeDriver):
'operatingSystem', TYPES_URN))
# Version 2.4 or later
else:
- #vmtools_elm = fixxpath('guest/vmTools', TYPES_URN)
+ # vmtools_elm = fixxpath('guest/vmTools', TYPES_URN)
vmtools_elm = element.find(fixxpath('guest/vmTools', TYPES_URN))
if vmtools_elm is not None:
vmware_tools = self._to_vmware_tools(vmtools_elm)
else:
- vmware_tools = DimensionDataServerVMWareTools(
- status=None,
- version_status=None,
- api_version=None)
+ vmware_tools = \
+ DimensionDataServerVMWareTools(
+ status=None,
+ version_status=None,
+ api_version=None
+ )
operation_system = element.find(fixxpath(
'guest/operatingSystem', TYPES_URN))
http://git-wip-us.apache.org/repos/asf/libcloud/blob/a9773905/libcloud/http.py
----------------------------------------------------------------------
diff --git a/libcloud/http.py b/libcloud/http.py
index c8d7102..e691937 100644
--- a/libcloud/http.py
+++ b/libcloud/http.py
@@ -221,7 +221,6 @@ class LibcloudConnection(LibcloudBaseConnection):
verify=self.verification
)
-
def prepared_request(self, method, url, body=None,
headers=None, raw=False, stream=False):
headers = self._normalize_headers(headers=headers)