DaanHoogland commented on a change in pull request #5896:
URL: https://github.com/apache/cloudstack/pull/5896#discussion_r791915981
##########
File path:
engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java
##########
@@ -4043,7 +4043,10 @@ public NicProfile addVmToNetwork(final VirtualMachine
vm, final Network network,
/**
* duplicated in {@see UserVmManagerImpl} for a {@see UserVmVO}
*/
- private void checkIfNetworkExistsForVM(VirtualMachine virtualMachine,
Network network) {
+ private void checkIfNetworkExistsForUserVM(VirtualMachine virtualMachine,
Network network) {
+ if (virtualMachine.getType() != VirtualMachine.Type.User) {
+ return; // others may have multiple nics in teh same network
Review comment:
```suggestion
return; // others may have multiple nics in the same network
```
--
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]