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 2019/07/15 21:30:07 UTC
[libcloud] 13/19: Fix syntax, update out of date test,
update docstring.
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 8a9785ec52a446cf4db03c6d3af5c157e9a2691f
Author: Tomaz Muraus <to...@tomaz.me>
AuthorDate: Mon Jul 15 23:05:25 2019 +0200
Fix syntax, update out of date test, update docstring.
---
libcloud/common/gridscale.py | 2 +-
libcloud/compute/drivers/gridscale.py | 4 ++--
libcloud/test/compute/test_gridscale.py | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/libcloud/common/gridscale.py b/libcloud/common/gridscale.py
index 62adb10..16b4f13 100644
--- a/libcloud/common/gridscale.py
+++ b/libcloud/common/gridscale.py
@@ -81,7 +81,7 @@ class GridscaleConnection(ConnectionUserAndKey, PollingConnection):
def _poll_request_initial(self, **kwargs):
if self.async_request_counter == 0:
- self.poll_response_initial = super().request(**kwargs)
+ self.poll_response_initial = super(GridscaleConnection, self).request(**kwargs)
r = self.poll_response_initial
self.async_request_counter += 1
else:
diff --git a/libcloud/compute/drivers/gridscale.py b/libcloud/compute/drivers/gridscale.py
index 93d5c64..486493e 100644
--- a/libcloud/compute/drivers/gridscale.py
+++ b/libcloud/compute/drivers/gridscale.py
@@ -217,8 +217,8 @@ class GridscaleNodeDriver(GridscaleBaseDriver):
:param location: The data center to create a node in.
:type location: :class:`.NodeLocation`
- :keyword ex_ssh_key_ids: sshkey uuid.
- :type ex_ssh_key_ids: ``str``
+ :keyword ex_ssh_key_ids: List of SSH key IDs to add to the server.
+ :type ex_ssh_key_ids: ``list`` of ``str``
:return: The newly created Node.
:rtype: :class:`.Node`
diff --git a/libcloud/test/compute/test_gridscale.py b/libcloud/test/compute/test_gridscale.py
index a053c6f..5117ff8 100644
--- a/libcloud/test/compute/test_gridscale.py
+++ b/libcloud/test/compute/test_gridscale.py
@@ -41,7 +41,7 @@ class Gridscale_Tests(LibcloudTestCase):
sshkey = ["b1682d3a-1869-4bdc-8ffe-e74a261d300c"]
GridscaleMockHttp.type = 'POST'
node = self.driver.create_node(name='test', size=size, image=image,
- location=location, auth=sshkey)
+ location=location, ex_ssh_key_ids=sshkey)
self.assertEqual(node.name, 'test.test')
self.assertEqual(node.public_ips, ['185.102.95.236', '2a06:2380:0:1::211'])