summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuji7 <lu.ji3@zte.com.cn>2017-10-18 16:49:09 +0800
committerLuji7 <lu.ji3@zte.com.cn>2017-10-18 16:49:14 +0800
commit47fce77ea2417986e4e90be1bbfbad4cbcb91ed1 (patch)
tree6ac110778b0acd26c6b3b96f4bd6384d067b830b
parentb65ec75e2e0c9d03828168761842c099e40c722a (diff)
Fix download csar path wrong.
Change-Id: Ifb9bbd1b5dbaf84b95b7925d2db2e0fccc72144b Issue-id: USECASEUI-36 Signed-off-by: Luji7 <lu.ji3@zte.com.cn>
-rw-r--r--server/src/main/java/org/onap/usecaseui/server/service/lcm/impl/DefaultServiceTemplateService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/main/java/org/onap/usecaseui/server/service/lcm/impl/DefaultServiceTemplateService.java b/server/src/main/java/org/onap/usecaseui/server/service/lcm/impl/DefaultServiceTemplateService.java
index b175cce7..9569775f 100644
--- a/server/src/main/java/org/onap/usecaseui/server/service/lcm/impl/DefaultServiceTemplateService.java
+++ b/server/src/main/java/org/onap/usecaseui/server/service/lcm/impl/DefaultServiceTemplateService.java
@@ -104,7 +104,7 @@ public class DefaultServiceTemplateService implements ServiceTemplateService {
protected void downloadFile(String toscaModelPath, String toPath) throws IOException {
try {
String msbUrl = RestfulServices.getMsbAddress();
- String templateUrl = String.format("http://%s/%s", msbUrl, toscaModelPath);
+ String templateUrl = String.format("http://%s%s", msbUrl, toscaModelPath);
ResponseBody body = sdcCatalog.downloadCsar(templateUrl).execute().body();
Files.write(body.bytes(),new File(toPath));
} catch (IOException e) {