[
https://issues.apache.org/jira/browse/LIBCLOUD-326?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tomaz Muraus resolved LIBCLOUD-326.
-----------------------------------
Resolution: Fixed
Assignee: Tomaz Muraus
Added this functionality + tests in 0.12.x branch.
Thanks.
> EC2 : ex_describe_keypairs should also return fingerprint
> ---------------------------------------------------------
>
> Key: LIBCLOUD-326
> URL: https://issues.apache.org/jira/browse/LIBCLOUD-326
> Project: Libcloud
> Issue Type: Improvement
> Components: Compute
> Reporter: Andre Merzky
> Assignee: Tomaz Muraus
> Original Estimate: 0.5h
> Remaining Estimate: 0.5h
>
> {{
> keypairs = conn.ex_describe_all_keypairs ()
> for kp in keypairs :
> keypair = conn.ex_describe_keypairs (kp)
> pprint (keypair)
> }}
> results in
> {{
> {'keyName': 'futuregrid'}
> }}
> but should result in:
> {{
> {'keyName': 'futuregrid',
> 'keyFingerprint':
> '00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00'}
> }}
> This should be easy to change in
> https://svn.apache.org/viewvc/libcloud/trunk/libcloud/compute/drivers/ec2.py?view=markup
> line 819 by adding something like
> {{
> key_name = findattr(element=response, xpath='keySet/item/keyName',
> namespace=NAMESPACE)
> return {
> 'keyName': key_name
> }
> }}
> to
> {{
> key_name = findattr(element=response, xpath='keySet/item/keyName',
> namespace=NAMESPACE)
> key_fp = findattr(element=response, xpath='keySet/item/keyFingerprint',
> namespace=NAMESPACE)
> return {
> 'keyName' : key_name
> 'keyFingerprint': key_fp
> }
> }}
> or so...
--
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