I am using devstack instance and i created a keypair on openstack.
now when i try to create a new keypair. where do i get the private key.

Any help is highly appreciated.



Regards
Jayant Kaushal



On Fri, Jan 10, 2014 at 1:45 AM, Jayant Kaushal <[email protected]>wrote:

> I am trying to fetch the existing key pairs from jclouds api.
> but the private key comes null from server.
>
> KeyPairApi keyPairApi =
> getNovaApi(computeService).getKeyPairExtensionForZone(regionName).get();
>     FluentIterable<? extends KeyPair> keyPairsList = keyPairApi.list();
>
>     keyPairsList = keyPairApi.list();
>     if(keyPairsList != null && keyPairsList.size() > 0) {
>       for(KeyPair keys : keyPairsList) {
>        keys.privateKey() // prints as null.
>         }
>       }
>     }
>
> Any Help
>
> Regards
> Jayant Kaushal
>
>

Reply via email to