summaryrefslogtreecommitdiffstats
path: root/share/newton_base/openoapi/hypervisor.py
diff options
context:
space:
mode:
Diffstat (limited to 'share/newton_base/openoapi/hypervisor.py')
-rwxr-xr-xshare/newton_base/openoapi/hypervisor.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/newton_base/openoapi/hypervisor.py b/share/newton_base/openoapi/hypervisor.py
index bfde0f51..455bad68 100755
--- a/share/newton_base/openoapi/hypervisor.py
+++ b/share/newton_base/openoapi/hypervisor.py
@@ -72,7 +72,7 @@ class Hypervisors(APIView):
vim["domain"] = "Default"
sess = VimDriverUtils.get_session(vim, tenantid)
- self.service['region_id'] = vim['openstack_region_id'] \
+ self.service['region_name'] = vim['openstack_region_id'] \
if vim.get('openstack_region_id') \
else vim['cloud_region_id']