fix msb instance_config 50/83850/1
authoryangyan <yangyanyj@chinamobile.com>
Mon, 1 Apr 2019 10:53:12 +0000 (18:53 +0800)
committeryangyan <yangyanyj@chinamobile.com>
Mon, 1 Apr 2019 10:58:45 +0000 (18:58 +0800)
Change-Id: I10fb9cba94717e8b0ec97fe906739090e3177f12
Issue-ID: VFC-1324
Signed-off-by: yangyan <yangyanyj@chinamobile.com>
docker/instance_config.sh

index 073d0e6..185194c 100755 (executable)
@@ -7,11 +7,11 @@ MR_IP=`echo $MR_ADDR | cut -d: -f 1`
 MR_PORT=`echo $MR_ADDR | cut -d: -f 2`
 
 if [ $MSB_IP ]; then
-    sed -i "s|MSB_SERVICE_IP.*|MSB_SERVICE_IP = '$MSB_IP'|" vfc/nfvo/lcm/lcm/pub/config/config.py
+    sed -i "s|MSB_SERVICE_IP = .*|MSB_SERVICE_IP = '$MSB_IP'|" vfc/nfvo/lcm/lcm/pub/config/config.py
 fi
 
 if [ $MSB_PORT ]; then
-    sed -i "s|MSB_SERVICE_PORT.*|MSB_SERVICE_PORT = '$MSB_PORT'|" vfc/nfvo/lcm/lcm/pub/config/config.py
+    sed -i "s|MSB_SERVICE_PORT = .*|MSB_SERVICE_PORT = '$MSB_PORT'|" vfc/nfvo/lcm/lcm/pub/config/config.py
 fi
 
 if [ $MR_IP ]; then