summaryrefslogtreecommitdiffstats
path: root/share/starlingx_base/registration/registration.py
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/starlingx_base/registration/registration.py
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/starlingx_base/registration/registration.py')
-rw-r--r--share/starlingx_base/registration/registration.py4
1 files changed, 2 insertions, 2 deletions
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: