From aa49f8cd2bb0cd890243c4dde06cfbbc9c512f9b Mon Sep 17 00:00:00 2001 From: fujinhua Date: Thu, 8 Nov 2018 14:20:28 +0800 Subject: Add nslcm reg api v2 to msb Change-Id: I3138182070f70959fa0f8d8edab12e4b12277d98 Issue-ID: VFC-1163 Signed-off-by: fujinhua --- lcm/urls.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lcm/urls.py b/lcm/urls.py index 9c14ede8..4f2c5e70 100644 --- a/lcm/urls.py +++ b/lcm/urls.py @@ -35,6 +35,10 @@ if REG_TO_MSB_WHEN_START: import json from lcm.pub.utils.restcall import req_by_msb req_by_msb(REG_TO_MSB_REG_URL, "POST", json.JSONEncoder().encode(REG_TO_MSB_REG_PARAM)) + v2_param = REG_TO_MSB_REG_PARAM.copy() + v2_param["version"] = "v2" + v2_param["url"] = v2_param["url"].replace("v1", "v2") + req_by_msb(REG_TO_MSB_REG_URL, "POST", json.JSONEncoder().encode(v2_param)) # deploy workflow when startup if DEPLOY_WORKFLOW_WHEN_START: -- cgit 1.2.3-korg