Merge "Solve ubuntu vi problem"
authorFu Jinhua <fu.jinhua@zte.com.cn>
Thu, 2 Aug 2018 03:23:50 +0000 (03:23 +0000)
committerGerrit Code Review <gerrit@onap.org>
Thu, 2 Aug 2018 03:23:50 +0000 (03:23 +0000)
lcm/docker/instance_config.sh
lcm/lcm/nf/vnf_create/inst_vnf.py

index c15cb84..e5d9227 100755 (executable)
@@ -19,6 +19,8 @@ if [ $SERVICE_IP ]; then
     sed -i "s|\"ip\": \".*\"|\"ip\": \"$SERVICE_IP\"|" vfc/gvnfm/vnflcm/lcm/lcm/pub/config/config.py
 fi
 
+sed -i "s/127.0.0.1:80/$MSB_IP:$MSB_PORT/" vfc/gvnfm/vnflcm/lcm/lcm/pub/config/config.py
+
 # Configure MYSQL
 if [ -z "$MYSQL_ADDR" ]; then
     export MYSQL_IP=`hostname -i`
index 9ae2515..b87602c 100644 (file)
@@ -338,7 +338,7 @@ def flavor_save(job_id, nf_inst_id, ret):
         swap=get_integer(ignore_case_get(ret, "swap")),
         isPublic=get_boolean(ignore_case_get(ret, "isPublic")),
         extraspecs=ignore_case_get(ret, "extraSpecs"),
-        is_predefined=ignore_case_get(ret, "returnCode"),
+        is_predefined=ret.get("returnCode", int(0)),
         instid=nf_inst_id)