mirror of https://github.com/apache/jclouds.git
ssh loop shouldn't attempt as root
This commit is contained in:
parent
1b9dfc7102
commit
dd5794036a
|
@ -135,7 +135,7 @@ public class CreateAndInstallVm implements Function<VmSpec, IMachine> {
|
|||
boolean sshDeamonIsRunning = false;
|
||||
while (!sshDeamonIsRunning) {
|
||||
try {
|
||||
if (runScriptOnNode(guestId, "id", wrapInInitScript(false)).getExitCode() == 0) {
|
||||
if (runScriptOnNode(guestId, "id", wrapInInitScript(false).runAsRoot(false)).getExitCode() == 0) {
|
||||
logger.debug("Got response from ssh daemon.");
|
||||
sshDeamonIsRunning = true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue