jclouds-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Phillips <andr...@apache.org>
Subject Re: Error Creating Key Pairs on OpenStack
Date Fri, 10 Jan 2014 01:06:44 GMT
[moving this question to the user@ list...]

Just to be clear: does the 'keyPairList' in your example contain the  
correct *public* keys? Or are no keys returned at all?

ap

Quoting Jayant Kaushal <awaken.rogue@gmail.com>:

> 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

Mime
View raw message