summaryrefslogtreecommitdiffstats
path: root/newton
diff options
context:
space:
mode:
Diffstat (limited to 'newton')
-rw-r--r--newton/newton/resource/views/capacity.py2
-rw-r--r--newton/newton/resource/views/events.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/newton/newton/resource/views/capacity.py b/newton/newton/resource/views/capacity.py
index c9d465e2..66d68b56 100644
--- a/newton/newton/resource/views/capacity.py
+++ b/newton/newton/resource/views/capacity.py
@@ -54,7 +54,7 @@ class CapacityCheck(APIView):
interface = 'public'
service = {'service_type': 'compute',
'interface': interface,
- 'region_id': vim['openstack_region_id']
+ 'region_name': vim['openstack_region_id']
if vim.get('openstack_region_id')
else vim['cloud_region_id']
}
diff --git a/newton/newton/resource/views/events.py b/newton/newton/resource/views/events.py
index 1f06c785..93383452 100644
--- a/newton/newton/resource/views/events.py
+++ b/newton/newton/resource/views/events.py
@@ -53,7 +53,7 @@ class EventsCheck(APIView):
interface = 'public'
service = {'service_type': 'compute',
'interface': interface,
- 'region_id': vim['openstack_region_id']
+ 'region_name': vim['openstack_region_id']
if vim.get('openstack_region_id')
else vim['cloud_region_id']}