aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorliyuenan <liyuenan@huawei.com>2017-04-01 16:28:12 +0800
committerliyuenan <liyuenan@huawei.com>2017-04-01 16:34:57 +0800
commita1cac5e3b8c8bdfef62fb078720c26cd7eccfbfa (patch)
treeea246db96b512ad0da5f41f569d1b549d02553a6
parent0523f8c84d0dd1530c725b08d881653f8522287f (diff)
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 <liyuenan@huawei.com>
-rwxr-xr-xdeploy/adapters/ansible/ansible_modules/keystone_endpoint.py3
1 files changed, 2 insertions, 1 deletions
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: