From a1cac5e3b8c8bdfef62fb078720c26cd7eccfbfa Mon Sep 17 00:00:00 2001 From: liyuenan Date: Sat, 1 Apr 2017 16:28:12 +0800 Subject: Create endpoint in different region JIRA: - Edit keystone_endpoint module to support different region. Before this patch, endpoint will be update when you use regiontwo or some other region. Change-Id: Ib37b87892cfa485b468f7500fdabe05ad3b6be4b Signed-off-by: liyuenan --- deploy/adapters/ansible/ansible_modules/keystone_endpoint.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deploy/adapters/ansible/ansible_modules/keystone_endpoint.py b/deploy/adapters/ansible/ansible_modules/keystone_endpoint.py index 0201dd26..fae2ec66 100755 --- a/deploy/adapters/ansible/ansible_modules/keystone_endpoint.py +++ b/deploy/adapters/ansible/ansible_modules/keystone_endpoint.py @@ -180,7 +180,8 @@ def main(): endpoints = [x for x in cloud.list_endpoints() if (x.service_id == service.id and - x.interface == interface)] + x.interface == interface and + x.region == region)] count = len(endpoints) if count > 1: -- cgit 1.2.3-korg