summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorBin Yang <bin.yang@windriver.com>2021-09-02 14:04:16 +0800
committerBin Yang <bin.yang@windriver.com>2021-09-10 18:04:19 +0800
commit206e6e65fc57ec71164ce8e49b84cb34ea29ef12 (patch)
tree8e2138edf148e916dc5cd593105c1a861ac6fe07 /share
parente22ad4eabc88aa9a25c89ee3351d23654a472819 (diff)
Upgrade dependency1.5.6
Issue-ID: MULTICLOUD-1344 Signed-off-by: Bin Yang <bin.yang@windriver.com> Change-Id: I39cf2fedb651a3cfc3601c5ccb01a1b67f564655
Diffstat (limited to 'share')
-rw-r--r--share/newton_base/proxy/identityV3.py2
-rw-r--r--share/starlingx_base/registration/registration.py4
2 files changed, 3 insertions, 3 deletions
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: