aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYuanHu <yuan.hu1@zte.com.cn>2016-10-13 09:43:47 +0800
committerYuanHu <yuan.hu1@zte.com.cn>2016-10-13 09:43:47 +0800
commitc2d6aa2b98f683fd84f6f157eceae4a7977d029a (patch)
treee65d37e905a632df83c4ffe4dccacf986569169d
parent2ec8c7fc2aef9ba52ef500f615aaeae753b46e03 (diff)
Parser download csar package from http server via msb.
Change-Id: Ibc414e5f01a57065de459d4a95ba27d8e5c2fb77 Issue-id: TOSCA-108 Signed-off-by: YuanHu <yuan.hu1@zte.com.cn>
-rw-r--r--catalog-core/catalog-mgr/src/main/java/org/openo/commontosca/catalog/model/parser/AbstractModelParser.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/catalog-core/catalog-mgr/src/main/java/org/openo/commontosca/catalog/model/parser/AbstractModelParser.java b/catalog-core/catalog-mgr/src/main/java/org/openo/commontosca/catalog/model/parser/AbstractModelParser.java
index d1c39051..f963d7b9 100644
--- a/catalog-core/catalog-mgr/src/main/java/org/openo/commontosca/catalog/model/parser/AbstractModelParser.java
+++ b/catalog-core/catalog-mgr/src/main/java/org/openo/commontosca/catalog/model/parser/AbstractModelParser.java
@@ -15,7 +15,7 @@
*/
package org.openo.commontosca.catalog.model.parser;
-import org.openo.commontosca.catalog.common.Config;
+import org.openo.commontosca.catalog.common.MsbAddrConfig;
import org.openo.commontosca.catalog.common.ToolUtil;
import org.openo.commontosca.catalog.db.exception.CatalogResourceException;
import org.openo.commontosca.catalog.model.common.TemplateUtils;
@@ -55,7 +55,7 @@ public abstract class AbstractModelParser {
}
public String getUrlOnHttpServer(String path) {
- return Config.getConfigration().getHttpServerAddr() + "/" + path;
+ return MsbAddrConfig.getMsbAddress() + "/" + path;
}
protected String toTempFilePath(String fileLocation) {