> +
> +   @Inject
> +   public CreateUniqueKeyPair(CloudStackClient client) {
> +      this.client = checkNotNull(client, "client");
> +   }
> +
> +   @Override
> +   public SshKeyPair load(String input) {
> +      SshKeyPair keyPair = null;
> +      while (keyPair == null) {
> +         try {
> +            keyPair = client.getSSHKeyPairClient().createSSHKeyPair(input);
> +            logger.debug(">> creating SSH key pair with name %s", input);
> +         } catch (IllegalStateException e) {
> +            
> +         }

Yeah, I'll throw something in to note the swallowed exception.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/45/files#r4843141

Reply via email to