Change-Id: Ifb9bbd1b5dbaf84b95b7925d2db2e0fccc72144b
Issue-id: USECASEUI-36
Signed-off-by: Luji7 <lu.ji3@zte.com.cn>
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) {