From: Zhang Rong(Jon) Date: Tue, 25 Oct 2022 12:07:55 +0000 (+0800) Subject: Update the ocloud available notification when registry Ocloud to SMO X-Git-Tag: 2.0.0-rc1~22 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=b4da1dbf264f5988f60f6e85f92402cbb0028c72;p=pti%2Fo2.git Update the ocloud available notification when registry Ocloud to SMO Issue-ID: INF-304 Signed-off-by: Zhang Rong(Jon) Change-Id: I91be0020923974bc44c209c59caf8ccca3e8eb84 --- diff --git a/o2ims/service/command/registration_handler.py b/o2ims/service/command/registration_handler.py index fd37457..8561c29 100644 --- a/o2ims/service/command/registration_handler.py +++ b/o2ims/service/command/registration_handler.py @@ -79,10 +79,9 @@ def call_smo(reg_data: dict): } callback_data = json.dumps({ - 'consumerSubscriptionId': reg_data['globalcloudId'], - 'notificationEventType': 'CREATE', - 'objectRef': config.get_api_url(), - 'postObjectState': reg_data, + 'globalCloudId': reg_data['globalcloudId'], + 'oCloudId': reg_data['oCloudId'], + 'IMS_EP': config.get_api_url(), 'smo_token_data': smo_token_info }) logger.info('URL: {}, data: {}'.format(