> @@ -149,8 +148,18 @@ public boolean apply(final String name) {
> final VMDeployment deployment = deployments.iterator().next();
>
>
> - return new NodeAndInitialCredentials<VMDeployment>(deployment, name,
> -
> LoginCredentials.builder().user(loginUser).identity(loginUser).password(loginPassword).authenticateSudo(true).build());
> + NodeAndInitialCredentials<VMDeployment> credential = null;
> +
> + if (template.getOptions().getPublicKey() != null){
> + String privateKey = template.getOptions().getPrivateKey();
> + credential = new
> NodeAndInitialCredentials<VMDeployment>(deployment, name,
> +
> LoginCredentials.builder().user(loginUser).privateKey(privateKey).authenticateSudo(true).build());
> + } else {
> + credential = new
> NodeAndInitialCredentials<VMDeployment>(deployment, name,
> +
> LoginCredentials.builder().user(loginUser).password(loginPassword).authenticateSudo(true).build());
> + }
@nacx Let's do that in a subsequent PR, along with the rate limit and the lock
file updates. WDYT?
---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/291/files/8a39037237f5cccc7d100bc58a9a82bdb89924b1#r67888952