nvazquez commented on code in PR #6735:
URL: https://github.com/apache/cloudstack/pull/6735#discussion_r992148326
##########
plugins/storage/volume/storpool/src/main/java/com/cloud/hypervisor/kvm/resource/wrapper/StorPoolDownloadTemplateCommandWrapper.java:
##########
@@ -53,7 +54,7 @@ public CopyCmdAnswer execute(final
StorPoolDownloadTemplateCommand cmd, final Li
String dstPath = null;
KVMStoragePool secondaryPool = null;
DataTO src = cmd.getSourceTO();
- DataTO dst = cmd.getDestinationTO();
+ TemplateObjectTO dst = (TemplateObjectTO) cmd.getDestinationTO();
Review Comment:
Maybe ask if the object is instance of TemplateObjectTO, otherwise fail and
log it?
--
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]