From 206e6e65fc57ec71164ce8e49b84cb34ea29ef12 Mon Sep 17 00:00:00 2001 From: Bin Yang Date: Thu, 2 Sep 2021 14:04:16 +0800 Subject: Upgrade dependency Issue-ID: MULTICLOUD-1344 Signed-off-by: Bin Yang Change-Id: I39cf2fedb651a3cfc3601c5ccb01a1b67f564655 --- share/newton_base/proxy/identityV3.py | 2 +- share/starlingx_base/registration/registration.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'share') diff --git a/share/newton_base/proxy/identityV3.py b/share/newton_base/proxy/identityV3.py index 6539943b..ab53d889 100644 --- a/share/newton_base/proxy/identityV3.py +++ b/share/newton_base/proxy/identityV3.py @@ -213,7 +213,7 @@ class TokensV2(Tokens): try: resp = super(TokensV2,self).post(request, vimid) - self._logger.debug("Token(v3)returns> headers:%s, data:%s" % (resp._headers, resp.data)) + # self._logger.debug("Token(v3)returns> headers:%s, data:%s" % (resp._headers, resp.data)) if resp.status_code == status.HTTP_201_CREATED: v3_content = resp.data v3_token = v3_content['token'] diff --git a/share/starlingx_base/registration/registration.py b/share/starlingx_base/registration/registration.py index 58d1c12d..7b9ba59d 100644 --- a/share/starlingx_base/registration/registration.py +++ b/share/starlingx_base/registration/registration.py @@ -442,14 +442,14 @@ class RegistryHelper(newton_registration.RegistryHelper): "/regions", "identity", session, viminfo, vimid, "regions") - for region in openstackregions: + for region in openstackregions or []: if region['id'] == 'SystemController': isDistributedCloud = True break else: continue - for region in openstackregions: + for region in openstackregions or []: if region['id'] == 'SystemController': continue elif region['id'] == 'RegionOne' and isDistributedCloud: -- cgit 1.2.3-korg