diff options
author | dyh <dengyuanhong@chinamobile.com> | 2020-08-06 09:20:55 +0800 |
---|---|---|
committer | dyh <dengyuanhong@chinamobile.com> | 2020-08-07 15:37:08 +0800 |
commit | 46bd3041d522ddce28ae3450e98c9c49b44b02cc (patch) | |
tree | 765a04f0a0bc4531d8bb6a0b4aba2304e894a34c /catalog/urls.py | |
parent | 824413f6f354330f868b38a2ec8cb93b3c8d2808 (diff) |
1. Remove the mandatory dependency on MSB
2. Refactor config file
Change-Id: I8317ee0e1440e177a54e5510c6393529b6a3a5fe
Issue-ID: MODELING-411
Signed-off-by: dyh <dengyuanhong@chinamobile.com>
Diffstat (limited to 'catalog/urls.py')
-rw-r--r-- | catalog/urls.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/catalog/urls.py b/catalog/urls.py index f149716..9429e5d 100644 --- a/catalog/urls.py +++ b/catalog/urls.py @@ -16,7 +16,7 @@ from django.conf.urls import include, url from django.contrib import admin from catalog.pub.config.config import REG_TO_MSB_WHEN_START, REG_TO_MSB_REG_URL, REG_TO_MSB_REG_PARAM, \ - MSB_SVC_CALALOG_URL, MSB_SVC_NSD_URL, MSB_SVC_VNFPKGM_URL, MSB_SVC_PARSER_URL + MSB_SVC_CALALOG_URL, MSB_SVC_NSD_URL, MSB_SVC_VNFPKGM_URL, MSB_SVC_PARSER_URL, DMAAP_ENABLED from catalog.pub.msapi.sdc_controller import SDCController urlpatterns = [ @@ -39,4 +39,5 @@ if REG_TO_MSB_WHEN_START: for reg_param in REG_TO_MSB_REG_PARAM: req_by_msb(REG_TO_MSB_REG_URL, "POST", json.JSONEncoder().encode(reg_param)) -SDCController().start() +if DMAAP_ENABLED: + SDCController().start() |