google-code-export / typica

Automatically exported from code.google.com/p/typica
Apache License 2.0
1 stars 1 forks source link

Not able to get The Material of Key Pair Info #20

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Try to get the list of KeyPairInfo 
2. I get it but the material attribute it is set to null
3.

try {
            List<KeyPairInfo> keyPairs = ec2Instance.getEc2().describeKeyPairs(
                    new ArrayList<String>());
            for (KeyPairInfo keyPairInfo : keyPairs) {
                log.debug(keyPairInfo.getKeyName());
                log.debug(keyPairInfo.getKeyMaterial());
            }
        } catch (Exception e) {
            log.error("error get KeyPairs", e);
        }

What version of the product are you using? On what operating system?
Typica 1.2 over Java Jdk 1.6.X

Please provide any additional information below.

Original issue reported on code.google.com by joaquind...@gmail.com on 3 May 2008 at 2:00

GoogleCodeExporter commented 9 years ago
I'll look into this. Sorry it took so long to see this.

Original comment by dkavan...@gmail.com on 27 May 2008 at 8:13

GoogleCodeExporter commented 9 years ago
I should note this in the javadoc. It is by design. When listing keypairs, you 
don't
get the material back from the WS call. That KeyPairInfo object is simply 
re-used by
other method calls.

Original comment by dkavan...@gmail.com on 5 Oct 2008 at 8:42