> +
> + /**
> + * Delete the public key in the cloud and the local private key.
> + */
> + private void deleteKeyPair(KeyPair keyPair) {
> + System.out.format(" Delete Key Pair%n");
> +
> + KeyPairApi keyPairApi =
> nova.getApi().getKeyPairExtensionForZone(ZONE).get();
> + keyPairApi.delete(keyPair.getName());
> +
> + if (keyPairFile.delete()) {
> + System.out.format(" Deleted %s%n",
> keyPairFile.getAbsolutePath());
> + }
> + else {
> + System.out.format(" Could not delete %s%n",
> keyPairFile.getAbsolutePath());
> +
Oops. Fixed.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-examples/pull/30/files#r8831791