Skip to content

Commit a55c3e5

Browse files
author
Rene Glover
authored
Update VolumeServiceImpl.java
1 parent 3449689 commit a55c3e5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

engine/storage/volume/src/main/java/org/apache/cloudstack/storage/volume/VolumeServiceImpl.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1035,9 +1035,7 @@ private void copyTemplateToManagedTemplateVolume(TemplateInfo srcTemplateInfo, T
10351035
try {
10361036
grantAccess(templateOnPrimary, destHost, destPrimaryDataStore);
10371037
} catch (Exception e) {
1038-
StorageAccessException e2 = new StorageAccessException("Unable to grant access to template: " + templateOnPrimary.getId() + " on host: " + destHost.getId());
1039-
e2.initCause(e);
1040-
throw e;
1038+
throw new StorageAccessException("Unable to grant access to template: " + templateOnPrimary.getId() + " on host: " + destHost.getId(), e);
10411039
}
10421040

10431041
templateOnPrimary.processEvent(Event.CopyingRequested);

0 commit comments

Comments
 (0)