Skip to content

[LIBCLOUD-647] - in newCCI changing the value of sshKeys to a list conta...#416

Closed
doberloh wants to merge 1 commit into
apache:trunkfrom
doberloh:libcloud647_fix_ssh_keys
Closed

[LIBCLOUD-647] - in newCCI changing the value of sshKeys to a list conta...#416
doberloh wants to merge 1 commit into
apache:trunkfrom
doberloh:libcloud647_fix_ssh_keys

Conversation

@doberloh

Copy link
Copy Markdown
Contributor

...ining a dictionary with format {'id':<numcerical_key_value>}

…ntaining a dictionary with format {'id':<numcerical_key_value>}
@Kami

Kami commented Dec 16, 2014

Copy link
Copy Markdown
Member

Can you please provide more background and reference to the documentation which explains how the payload of sshKeys attribute should look like?

Thanks

@doberloh

Copy link
Copy Markdown
Contributor Author

So I found this issue while trying to use libcloud v0.16.0. I suspected there was an issue in the libcloud code when I was getting errors back from the softlayer API while sending ex_keyname='keyname' into the create_node function. I opened a ticket with them and they sent me back a short code snippet using their python library here: https://github.com/softlayer/softlayer-python/tree/master/SoftLayer. In it they sent sshKeys as a list of one dictionary in the format of the change I have made. You can see where they handle ssh keys in their python library at line 350 of the _generate_create_dict method: https://github.com/softlayer/softlayer-python/blob/master/SoftLayer/managers/vs.py. It is the same code that I have modified the libcloud code to be. Hopefully that was enough info :)

@asfgit asfgit closed this in 788ced3 Dec 16, 2014
@Kami

Kami commented Dec 16, 2014

Copy link
Copy Markdown
Member

Thanks for the clarification.

Looks good, merged into trunk. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants