mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-9763: set ssh public key when creating vm data (#1919)
This commit is contained in:
parent
4e4d7c7e36
commit
ea52a1312f
|
|
@ -601,7 +601,9 @@ public class CommandSetupHelper {
|
|||
final NicVO nic = _nicDao.findByNtwkIdAndInstanceId(guestNetworkId, vm.getId());
|
||||
if (nic != null) {
|
||||
s_logger.debug("Creating user data entry for vm " + vm + " on domR " + router);
|
||||
createVmDataCommand(router, vm, nic, null, cmds);
|
||||
|
||||
_userVmDao.loadDetails(vm);
|
||||
createVmDataCommand(router, vm, nic, vm.getDetail("SSH.PublicKey"), cmds);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue