mirror of https://github.com/apache/cloudstack.git
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:
parent
4c30636c22
commit
5028874e1c
|
|
@ -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("\\\\" ,"/" );
|
||||
|
|
|
|||
Loading…
Reference in New Issue