From b4da1dbf264f5988f60f6e85f92402cbb0028c72 Mon Sep 17 00:00:00 2001 From: "Zhang Rong(Jon)" Date: Tue, 25 Oct 2022 20:07:55 +0800 Subject: [PATCH] Update the ocloud available notification when registry Ocloud to SMO Issue-ID: INF-304 Signed-off-by: Zhang Rong(Jon) Change-Id: I91be0020923974bc44c209c59caf8ccca3e8eb84 --- o2ims/service/command/registration_handler.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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( -- 2.16.6