sureshanaparti commented on code in PR #8915:
URL: https://github.com/apache/cloudstack/pull/8915#discussion_r1567053150
##########
plugins/hypervisors/vmware/src/main/java/com/cloud/hypervisor/vmware/resource/VmwareResource.java:
##########
@@ -2969,7 +2969,10 @@ protected void
setVAppPropertiesToConfigSpec(VmConfigInfo vAppConfig,
}
private String appendFileType(String path, String fileType) {
- if (path.toLowerCase().endsWith(fileType.toLowerCase())) {
+ if (StringUtils.isBlank(path)) {
+ throw new CloudRuntimeException("No path given, cannot append
filetype" + fileType);
Review Comment:
```suggestion
throw new CloudRuntimeException("No path given, cannot append
filetype " + fileType);
```
--
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]