mirror of
https://github.com/apache/cloudstack.git
synced 2025-12-15 18:12:35 +01:00
Remove extra / for template install path during sync.
This commit is contained in:
parent
bb85a564da
commit
0acce2c518
@ -159,7 +159,7 @@ public class TemplateLocation {
|
||||
public TemplateProp getTemplateInfo() {
|
||||
TemplateProp tmplInfo = new TemplateProp();
|
||||
tmplInfo.id = Long.parseLong(_props.getProperty("id"));
|
||||
tmplInfo.installPath = _templatePath + File.separator + _props.getProperty("filename");
|
||||
tmplInfo.installPath = _templatePath + _props.getProperty("filename"); // _templatePath endsWith /
|
||||
if (_resourceType == ResourceType.VOLUME){
|
||||
tmplInfo.installPath = tmplInfo.installPath.substring(tmplInfo.installPath.indexOf("volumes"));
|
||||
}else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user