From: Zhang Rong(Jon) Date: Thu, 17 Nov 2022 02:16:05 +0000 (+0800) Subject: Fix INF-356 DC client auth token is invalid X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=311537b9d3d9d20120686daf9e867f947c5d1274;p=pti%2Fo2.git Fix INF-356 DC client auth token is invalid Issue-ID: INF-356 Signed-off-by: Zhang Rong(Jon) Change-Id: I38bc8f2ee80e1711dfd2689ac2ce7555819490fc --- diff --git a/o2ims/adapter/clients/ocloud_client.py b/o2ims/adapter/clients/ocloud_client.py index 9fea66c..015da1f 100644 --- a/o2ims/adapter/clients/ocloud_client.py +++ b/o2ims/adapter/clients/ocloud_client.py @@ -270,6 +270,7 @@ class StxClientImp(object): ResourceTypeEnum.OCLOUD, systems[0]) if systems else None def getSubcloudList(self): + self.dcclient = self.getDcmanagerClient() subs = self.dcclient.subcloud_manager.list_subclouds() known_subs = [sub for sub in subs if sub.sync_status != 'unknown'] return known_subs