[
https://issues.apache.org/jira/browse/LIBCLOUD-393?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13761842#comment-13761842
]
Amir Pakdel commented on LIBCLOUD-393:
--------------------------------------
It is looking for password variable (which is None) in the list of keys on
node, instead of looking for 'password' string. Consequently, this condition
always fails and it never uses the password.
On my local system, after checking out latest version from git, I do the
following:
{noformat}
sed -i -e's/if password in node.keys():/if "password" in node.keys():/'
libcloud/compute/drivers/cloudstack.py
{noformat}
> CloudStackNodeDriver.create_node does not find node's keypair or password
> -------------------------------------------------------------------------
>
> Key: LIBCLOUD-393
> URL: https://issues.apache.org/jira/browse/LIBCLOUD-393
> Project: Libcloud
> Issue Type: Bug
> Reporter: Amir Pakdel
>
> Looking for a variable that is set to None, instead of a string. Seems to be
> a simple typo:
> {noformat}
> keypair, password = None, None
> if keypair in node.keys():
> keypair = node['keypair']
> if password in node.keys():
> password = node['password']
> {noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira