summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
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: