From: liyuenan Date: Sat, 1 Apr 2017 08:28:12 +0000 (+0800) Subject: Create endpoint in different region X-Git-Tag: opnfv-5.0.0~35^2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=a1cac5e3b8c8bdfef62fb078720c26cd7eccfbfa;p=compass4nfv.git 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 --- 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: