ssh loop shouldn't attempt as root

This commit is contained in:
Adrian Cole 2012-01-06 14:44:12 -08:00
parent 1b9dfc7102
commit dd5794036a
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}