mirror of https://github.com/apache/cloudstack.git
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:
parent
c2bd32fa41
commit
09045bd3e5
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in New Issue