sureshanaparti commented on code in PR #10255:
URL: https://github.com/apache/cloudstack/pull/10255#discussion_r1939122605
##########
server/src/main/java/com/cloud/network/element/VirtualRouterElement.java:
##########
@@ -767,7 +767,8 @@ public boolean saveSSHKey(final Network network, final
NicProfile nic, final Vir
@Override
public boolean saveHypervisorHostname(NicProfile nicProfile, Network
network, VirtualMachineProfile vm, DeployDestination dest) throws
ResourceUnavailableException {
- if
(_networkModel.getUserDataUpdateProvider(network).getProvider().equals(Provider.VirtualRouter)
&& vm.getVirtualMachine().getType() == VirtualMachine.Type.User) {
+ final UserDataServiceProvider userDataUpdateProvider =
_networkModel.getUserDataUpdateProvider(network);
+ if (userDataUpdateProvider != null &&
Provider.VirtualRouter.equals(userDataUpdateProvider.getProvider()) &&
vm.getVirtualMachine().getType() == VirtualMachine.Type.User) {
Review Comment:
addressed, thanks @Pearl1594
--
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]