Skip to content

Commit 6b8a725

Browse files
committed
fix nic attach warning during restore
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
1 parent 34960a0 commit 6b8a725

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

server/src/main/java/com/cloud/vm/UserVmManagerImpl.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8322,6 +8322,10 @@ protected void updateVolumesOwner(final List<VolumeVO> volumes, Account oldAccou
83228322
*/
83238323
protected void updateVmNetwork(AssignVMCmd cmd, Account caller, UserVmVO vm, Account newAccount, VirtualMachineTemplate template)
83248324
throws InsufficientCapacityException, ResourceAllocationException {
8325+
if (cmd.isSkipNetwork()) {
8326+
logger.trace("Skipping network update for {} as per command parameter.", vm);
8327+
return;
8328+
}
83258329

83268330
logger.trace("Updating network for VM [{}].", vm);
83278331

0 commit comments

Comments
 (0)