sureshanaparti commented on a change in pull request #4377:
URL: https://github.com/apache/cloudstack/pull/4377#discussion_r505515332
##########
File path: server/src/main/java/com/cloud/template/TemplateManagerImpl.java
##########
@@ -2063,6 +2063,7 @@ private VMTemplateVO
updateTemplateOrIso(BaseUpdateTemplateOrIsoCmd cmd) {
ex.addProxyObject(String.valueOf(id), "templateId");
throw ex;
}
+ long oldGuestOSId = template.getGuestOSId();
Review comment:
moving before this line L#2096 `template =
_tmpltDao.createForUpdate(id);` should be ok?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]