Update the ocloud available notification when registry Ocloud to SMO 94/9394/2
authorZhang Rong(Jon) <rong.zhang@windriver.com>
Tue, 25 Oct 2022 12:07:55 +0000 (20:07 +0800)
committerJon Zhang <rong.zhang@windriver.com>
Tue, 25 Oct 2022 12:21:40 +0000 (12:21 +0000)
Issue-ID: INF-304
Signed-off-by: Zhang Rong(Jon) <rong.zhang@windriver.com>
Change-Id: I91be0020923974bc44c209c59caf8ccca3e8eb84

o2ims/service/command/registration_handler.py

index fd37457..8561c29 100644 (file)
@@ -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(