From d6d8cbf451a596aa7cbaa240fbcafb288a3494bc Mon Sep 17 00:00:00 2001 From: Xiaohua Zhang Date: Thu, 20 Sep 2018 04:53:04 +0000 Subject: Filter endpoint filter mismatch with keystoneauth1 keystoneauth1 accept region_name as endpoint filter, which will match either region_id or region of the endpoint catalog Change-Id: I7ba1f7904e4b3004565d826f4ea3cd345ce45f62 Issue-ID: MULTICLOUD-364 Signed-off-by: Xiaohua Zhang --- ocata/ocata/resource/views/capacity.py | 2 +- ocata/ocata/resource/views/events.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'ocata') diff --git a/ocata/ocata/resource/views/capacity.py b/ocata/ocata/resource/views/capacity.py index b1f31913..eaf7912f 100644 --- a/ocata/ocata/resource/views/capacity.py +++ b/ocata/ocata/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/ocata/ocata/resource/views/events.py b/ocata/ocata/resource/views/events.py index 4b477a75..a5b7d824 100644 --- a/ocata/ocata/resource/views/events.py +++ b/ocata/ocata/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']} -- cgit 1.2.3-korg