summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfujinhua <fu.jinhua@zte.com.cn>2018-11-08 14:20:28 +0800
committerfujinhua <fu.jinhua@zte.com.cn>2018-11-08 14:20:28 +0800
commitaa49f8cd2bb0cd890243c4dde06cfbbc9c512f9b (patch)
tree0c9dc6e0f2b9b0bd221a94f47fd9b3d59ff3fcb5
parentad7dae30e16e2b716ed91471aaa4526dcc4ed192 (diff)
Add nslcm reg api v2 to msb
Change-Id: I3138182070f70959fa0f8d8edab12e4b12277d98 Issue-ID: VFC-1163 Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
-rw-r--r--lcm/urls.py4
1 files changed, 4 insertions, 0 deletions
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: