fix bugs that may cause program crash, change mkdir to mkdirs (#3249)

Fixes: [#CLOUDSTACK-10406](https://issues.apache.org/jira/browse/CLOUDSTACK-10406)
This commit is contained in:
bd2019us 2019-04-05 04:14:04 -05:00 committed by dahn
parent c2bd32fa41
commit 09045bd3e5
1 changed files with 1 additions and 1 deletions

View File

@ -730,7 +730,7 @@ public class ConfigurationServerImpl extends ManagerBase implements Configuratio
Boolean devel = Boolean.valueOf(_configDao.getValue("developer"));
if (!keyDir.isDirectory()) {
s_logger.warn("Failed to create " + homeDir + "/.ssh for storing the SSH keypars");
keyDir.mkdir();
keyDir.mkdirs();
}
String pubKey = _configDao.getValue("ssh.publickey");
String prvKey = _configDao.getValue("ssh.privatekey");