CLOUDSTACK-7665 File.separator shouldn't be used in this case, the

separator is fixed just like the rest of the path
This commit is contained in:
Hugo Trippaers 2014-10-02 09:54:53 +02:00
parent 70efe1507c
commit 47ac3e4fd1

View File

@ -18,7 +18,6 @@
*/
package org.apache.cloudstack.storage.image;
import java.io.File;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashSet;
@ -878,7 +877,7 @@ public class TemplateServiceImpl implements TemplateService {
if (tmpltStore == null) {
tmpltStore =
new TemplateDataStoreVO(storeId, tmplt.getId(), new Date(), 100, Status.DOWNLOADED, null, null, null,
TemplateConstants.DEFAULT_SYSTEM_VM_TEMPLATE_PATH + tmplt.getId() + File.separator, tmplt.getUrl());
TemplateConstants.DEFAULT_SYSTEM_VM_TEMPLATE_PATH + tmplt.getId() + '/', tmplt.getUrl());
tmpltStore.setSize(0L);
tmpltStore.setPhysicalSize(0); // no size information for
// pre-seeded system vm templates