mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-11-04 00:02:37 +01:00 
			
		
		
		
	under windows the publicKeyPath and privateKeyPath should replace from \ to / when send them into injectkeys.py
Signed-off-by: Rajani Karuturi <rajanikaruturi@gmail.com> This closes #66
This commit is contained in:
		
							parent
							
								
									dc72e9f111
								
							
						
					
					
						commit
						4c30636c22
					
				@ -894,6 +894,13 @@ 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")) {
 | 
			
		||||
            scriptPath = scriptPath.replaceAll("\\\\" ,"/" );
 | 
			
		||||
            systemVmIsoPath = systemVmIsoPath.replaceAll("\\\\" ,"/" );
 | 
			
		||||
            publicKeyPath = publicKeyPath.replaceAll("\\\\" ,"/" );
 | 
			
		||||
            privKeyPath = privKeyPath.replaceAll("\\\\" ,"/" );
 | 
			
		||||
        }
 | 
			
		||||
        command.add(scriptPath);
 | 
			
		||||
        command.add(publicKeyPath);
 | 
			
		||||
        command.add(privKeyPath);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user