weizhouapache commented on code in PR #11654:
URL: https://github.com/apache/cloudstack/pull/11654#discussion_r2371491435
##########
plugins/network-elements/elastic-loadbalancer/src/main/java/com/cloud/network/lb/ElasticLoadBalancerManagerImpl.java:
##########
@@ -477,6 +486,24 @@ public boolean
finalizeVirtualMachineProfile(VirtualMachineProfile profile, Depl
}
String msPublicKey = _configDao.getValue("ssh.publickey");
buf.append("
authorized_key=").append(VirtualMachineGuru.getEncodedMsPublicKey(msPublicKey));
+
+ if (SystemVmEnableUserData.valueIn(dc.getId())) {
+ String userDataUuid = RouterUserData.valueIn(dc.getId());
+ try {
+ String userData =
userDataManager.validateAndGetUserDataForSystemVM(userDataUuid);
Review Comment:
can it be extracted to a method in userDataManager ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]