under windows the publicKeyPath and privateKeyPath should replace from \ to / when send them into injectkeys.py , and use isOnWindows function . thanks karuturi kindly tips.

Signed-off-by: Rajani Karuturi <rajanikaruturi@gmail.com>

This closes #66
This commit is contained in:
cloudtrends 2015-01-15 13:53:12 +08:00 committed by Rajani Karuturi
parent 4c30636c22
commit 5028874e1c
1 changed files with 1 additions and 2 deletions

View File

@ -894,8 +894,7 @@ public class ConfigurationServerImpl extends ManagerBase implements Configuratio
} else {
command = new Script("/bin/bash", s_logger);
}
String osname = System.getProperty("os.name");
if (osname.startsWith("Windows")) {
if (this.isOnWindows()) {
scriptPath = scriptPath.replaceAll("\\\\" ,"/" );
systemVmIsoPath = systemVmIsoPath.replaceAll("\\\\" ,"/" );
publicKeyPath = publicKeyPath.replaceAll("\\\\" ,"/" );