GutoVeronezi commented on code in PR #8234:
URL: https://github.com/apache/cloudstack/pull/8234#discussion_r1492965095


##########
server/src/main/java/com/cloud/vm/UserVmManagerImpl.java:
##########
@@ -1892,7 +1925,11 @@ public UserVm upgradeVirtualMachine(ScaleVMCmd cmd) 
throws ResourceUnavailableEx
         }
         CallContext.current().setEventDetails("Vm Id: " + vm.getUuid());
 
-        boolean result = upgradeVirtualMachine(vmId, newServiceOfferingId, 
cmd.getDetails());
+        Map<String, String> cmdDetails = cmd.getDetails();
+
+        updateInstanceDetails(cmdDetails, vm, newServiceOfferingId);
+
+        boolean result = upgradeVirtualMachine(vmId, newServiceOfferingId, 
cmdDetails);

Review Comment:
   > ping @DaanHoogland @GutoVeronezi , anyone has tested it ?
   
   Yes, it was tested.
   
   > if the upgrade fail, should the details be restored to the original values 
?
   
   The PR does not address changes to this behavior. it remains the same; we 
can discuss it in an issue or another PR.
   
   



-- 
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]

Reply via email to