Repository: jclouds
Updated Branches:
  refs/heads/master d905adebe -> eaf10f10a


Properly unregister all created key pairs


Project: http://git-wip-us.apache.org/repos/asf/jclouds/repo
Commit: http://git-wip-us.apache.org/repos/asf/jclouds/commit/eaf10f10
Tree: http://git-wip-us.apache.org/repos/asf/jclouds/tree/eaf10f10
Diff: http://git-wip-us.apache.org/repos/asf/jclouds/diff/eaf10f10

Branch: refs/heads/master
Commit: eaf10f10a98adc2392513cd6e9722d64eca3c1af
Parents: d905ade
Author: El del tallat <[email protected]>
Authored: Mon Jun 12 08:40:10 2017 +0200
Committer: El del tallat <[email protected]>
Committed: Mon Jun 12 08:40:10 2017 +0200

----------------------------------------------------------------------
 .../packet/compute/strategy/CreateSshKeysThenCreateNodes.java       | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jclouds/blob/eaf10f10/providers/packet/src/main/java/org/jclouds/packet/compute/strategy/CreateSshKeysThenCreateNodes.java
----------------------------------------------------------------------
diff --git 
a/providers/packet/src/main/java/org/jclouds/packet/compute/strategy/CreateSshKeysThenCreateNodes.java
 
b/providers/packet/src/main/java/org/jclouds/packet/compute/strategy/CreateSshKeysThenCreateNodes.java
index 3a5a02a..148079f 100644
--- 
a/providers/packet/src/main/java/org/jclouds/packet/compute/strategy/CreateSshKeysThenCreateNodes.java
+++ 
b/providers/packet/src/main/java/org/jclouds/packet/compute/strategy/CreateSshKeysThenCreateNodes.java
@@ -150,6 +150,7 @@ public class CreateSshKeysThenCreateNodes extends 
CreateNodesWithGroupEncodedInt
          logger.debug(">> key pair not found. creating a new key pair %s ...", 
label);
          SshKey newKey = api.sshKeyApi().create(label, options.getPublicKey());
          logger.debug(">> key pair created! %s", newKey);
+         generatedSshKeyIds.add(newKey.id());
       } else {
          logger.debug(">> key pair found! %s", key);
          generatedSshKeyIds.add(key.id());

Reply via email to