rohityadavcloud commented on code in PR #8029:
URL: https://github.com/apache/cloudstack/pull/8029#discussion_r1347133502


##########
server/src/main/java/org/apache/cloudstack/direct/download/DirectDownloadManagerImpl.java:
##########
@@ -362,7 +366,13 @@ private Answer 
sendDirectDownloadCommand(DirectDownloadCommand cmd, VMTemplateVO
         }
         if (!downloaded) {
             logUsageEvent(template, poolId);
-            throw new CloudRuntimeException("Template " + template.getId() + " 
could not be downloaded on pool " + poolId + ", failing after trying on several 
hosts");
+            if (!answerDetails.isEmpty()){
+                Account caller = CallContext.current().getCallingAccount();
+                if (caller != null && caller.getType() == 
Account.ACCOUNT_TYPE_ADMIN){

Review Comment:
   I think this was refactored b/w 4.16-4.18.



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