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:29:55 UTC
[libcloud] 01/19: changed auth param in create_node and
functionality regarding auth param
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 1e83bc1272e0033ae64a4723ed498b1a51bfbabe
Author: Sydney Weber <Sy...@gridscale.io>
AuthorDate: Mon Jul 15 15:18:19 2019 +0200
changed auth param in create_node and functionality regarding auth param
---
libcloud/compute/drivers/gridscale.py | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/libcloud/compute/drivers/gridscale.py b/libcloud/compute/drivers/gridscale.py
index 37a65c6..22a5296 100644
--- a/libcloud/compute/drivers/gridscale.py
+++ b/libcloud/compute/drivers/gridscale.py
@@ -201,7 +201,7 @@ class GridscaleNodeDriver(GridscaleBaseDriver):
templates.append(template)
return sorted(templates, key=lambda sort: sort.name)
- def create_node(self, name, size, image, location, auth):
+ def create_node(self, name, size, image, location, ex_ssh_key_ids=None):
"""
Create a simple node with a name, cores, memory at the designated
location.
@@ -218,14 +218,13 @@ class GridscaleNodeDriver(GridscaleBaseDriver):
:param location: The data center to create a node in.
:type location: :class:`.NodeLocation`
- :param auth: sshkey uuid.
- :type auth: :class:`.NodeAuthSSHKey`
+ :keyword ex_ssh_key_ids: sshkey uuid.
+ :type ex_ssh_key_ids: ``str``
:return: The newly created Node.
:rtype: :class:`.Node`
"""
- auth = NodeAuthSSHKey(auth)
if size.ram % 1024 != 0:
raise Exception('Value not accepted. Use a multiple of 1024 e.g.'
@@ -249,7 +248,7 @@ class GridscaleNodeDriver(GridscaleBaseDriver):
location=location,
template={
'template_uuid': image.id,
- 'sshkeys': auth.pubkey})
+ 'sshkeys': ex_ssh_key_ids})
ip = self.ex_create_ip(4, location, name + '_ip')