Properly unregister all created key pairs

This commit is contained in:
El del tallat 2017-06-12 08:40:10 +02:00
parent d905adebe1
commit eaf10f10a9
1 changed files with 1 additions and 0 deletions

View File

@ -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());