Skip to content

Commit 0acce2c

Browse files
committed
Remove extra / for template install path during sync.
1 parent bb85a56 commit 0acce2c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/src/com/cloud/storage/template/TemplateLocation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ public boolean save() {
159159
public TemplateProp getTemplateInfo() {
160160
TemplateProp tmplInfo = new TemplateProp();
161161
tmplInfo.id = Long.parseLong(_props.getProperty("id"));
162-
tmplInfo.installPath = _templatePath + File.separator + _props.getProperty("filename");
162+
tmplInfo.installPath = _templatePath + _props.getProperty("filename"); // _templatePath endsWith /
163163
if (_resourceType == ResourceType.VOLUME){
164164
tmplInfo.installPath = tmplInfo.installPath.substring(tmplInfo.installPath.indexOf("volumes"));
165165
}else {

0 commit comments

Comments
 (0)