DaanHoogland commented on code in PR #10132:
URL: https://github.com/apache/cloudstack/pull/10132#discussion_r1930708611


##########
engine/storage/volume/src/main/java/org/apache/cloudstack/storage/volume/VolumeServiceImpl.java:
##########
@@ -1035,9 +1035,7 @@ private void 
copyTemplateToManagedTemplateVolume(TemplateInfo srcTemplateInfo, T
             try {
                 grantAccess(templateOnPrimary, destHost, destPrimaryDataStore);
             } catch (Exception e) {
-                StorageAccessException e2 = new StorageAccessException("Unable 
to grant access to template: " + templateOnPrimary.getId() + " on host: " + 
destHost.getId());
-                e2.initCause(e);
-                throw e;
+                throw new StorageAccessException("Unable to grant access to 
template: " + templateOnPrimary.getId() + " on host: " + destHost.getId(), e);

Review Comment:
   did you also add the constructor? I think it didn't exist yet.



-- 
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: commits-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to