From be94843ccf886ea9979cf9596181767c439c0ba0 Mon Sep 17 00:00:00 2001 From: Frank Date: Mon, 31 Jan 2011 11:48:32 -0800 Subject: [PATCH] fix typo of parameters order when create public key and private key of systemvm --- server/src/com/cloud/server/ConfigurationServerImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/com/cloud/server/ConfigurationServerImpl.java b/server/src/com/cloud/server/ConfigurationServerImpl.java index 9d394bf61f8..198875179c1 100644 --- a/server/src/com/cloud/server/ConfigurationServerImpl.java +++ b/server/src/com/cloud/server/ConfigurationServerImpl.java @@ -507,8 +507,8 @@ public class ConfigurationServerImpl implements ConfigurationServer { String pubKey = _configDao.getValue("ssh.publickey"); String prvKey = _configDao.getValue("ssh.privatekey"); - writeKeyToDisk(homeDir + "/.ssh/id_rsa", prvKey); - writeKeyToDisk(homeDir + "/.ssh/id_rsa.pub", pubKey); + writeKeyToDisk(prvKey, homeDir + "/.ssh/id_rsa"); + writeKeyToDisk(pubKey, homeDir + "/.ssh/id_rsa.pub"); } protected void injectSshKeysIntoSystemVmIsoPatch(String publicKeyPath, String privKeyPath) {