You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by "Oleg Suharev (JIRA)" <ji...@apache.org> on 2014/01/14 15:48:52 UTC

[jira] [Closed] (LIBCLOUD-492) In ec2 driver delete_key_pair accept key name, not KeyPair object

     [ https://issues.apache.org/jira/browse/LIBCLOUD-492?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oleg Suharev closed LIBCLOUD-492.
---------------------------------

    Resolution: Fixed

[~kami] thx

> 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)