summaryrefslogtreecommitdiffstats
path: root/lcm
diff options
context:
space:
mode:
authorhongyuzhao <zhao.hongyu@zte.com.cn>2019-08-12 17:04:37 +0800
committerhongyuzhao <zhao.hongyu@zte.com.cn>2019-08-12 17:06:05 +0800
commit2cd885c6de901784dfdfcf50a8ca1316c3daa029 (patch)
treebe9419543b07c9dc9b261a5c63a900e59e16e2ee /lcm
parent1b0cfdd432919f8eac484d67508291f3143008ef (diff)
fix bug for failure in creating subscriptions for vnfm
Change-Id: Ie49b7f84627e582516ad2bcb2e7bb6e523fcabbb Issue-ID: VFC-1482 Signed-off-by: hongyuzhao <zhao.hongyu@zte.com.cn>
Diffstat (limited to 'lcm')
-rw-r--r--lcm/lcm/pub/utils/notificationsutil.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lcm/lcm/pub/utils/notificationsutil.py b/lcm/lcm/pub/utils/notificationsutil.py
index 8a38fd62..6b7c791f 100644
--- a/lcm/lcm/pub/utils/notificationsutil.py
+++ b/lcm/lcm/pub/utils/notificationsutil.py
@@ -61,7 +61,7 @@ class NotificationsUtil(object):
}
callbackUri = subscription.callback_uri
auth_info = json.loads(subscription.auth_info)
- if auth_info["authType"] != const.OAUTH2_CLIENT_CREDENTIALS:
+ if const.BASIC in auth_info["authType"]:
try:
self.post_notification(callbackUri, auth_info, notification)
except Exception as e: