libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LIBCLOUD-492) In ec2 driver delete_key_pair accept key name, not KeyPair object
Date Tue, 14 Jan 2014 14:03:51 GMT

    [ https://issues.apache.org/jira/browse/LIBCLOUD-492?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13870738#comment-13870738
] 

ASF subversion and git services commented on LIBCLOUD-492:
----------------------------------------------------------

Commit 05252f652d05ab1eb4e0425ec45dfc569ae33124 in branch refs/heads/trunk from [~gigimon]
[ https://git-wip-us.apache.org/repos/asf?p=libcloud.git;h=05252f6 ]

[LIBCLOUD-492] Fix delete_key_pair method in the EC2 driver.

The API expects a key pair name and not a key pair object.

Signed-off-by: Tomaz Muraus <tomaz@apache.org>


> In ec2 driver delete_key_pair accept key name, not KeyPair object
> -----------------------------------------------------------------
>
>                 Key: LIBCLOUD-492
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-492
>             Project: Libcloud
>          Issue Type: Bug
>            Reporter: Oleg Suharev
>         Attachments: LIBCLOUD-492.patch
>
>
> In EC2 driver delete_key_pair work only if send key_pair as string, but in openstack
and cloudstack driver this method wait KeyPair object
> {code}
>     def delete_key_pair(self, key_pair):
>         params = {
>             'Action': 'DeleteKeyPair',
>             'KeyName': key_pair
>         }
>         result = self.connection.request(self.path, params=params).object
>         element = findtext(element=result, xpath='return',
>                            namespace=NAMESPACE)
>         return element == 'true'
> {code}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message