fix bug for failure in creating subscriptions for vnfm 08/93308/1
authorhongyuzhao <zhao.hongyu@zte.com.cn>
Mon, 12 Aug 2019 09:04:37 +0000 (17:04 +0800)
committerhongyuzhao <zhao.hongyu@zte.com.cn>
Mon, 12 Aug 2019 09:06:05 +0000 (17:06 +0800)
Change-Id: Ie49b7f84627e582516ad2bcb2e7bb6e523fcabbb
Issue-ID: VFC-1482
Signed-off-by: hongyuzhao <zhao.hongyu@zte.com.cn>
lcm/lcm/pub/utils/notificationsutil.py

index 8a38fd6..6b7c791 100644 (file)
@@ -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: