diff options
author | liyuenan <liyuenan@huawei.com> | 2017-04-01 16:28:12 +0800 |
---|---|---|
committer | liyuenan <liyuenan@huawei.com> | 2017-04-01 16:34:57 +0800 |
commit | a1cac5e3b8c8bdfef62fb078720c26cd7eccfbfa (patch) | |
tree | ea246db96b512ad0da5f41f569d1b549d02553a6 /deploy/adapters/ansible/ansible_modules/keystone_endpoint.py | |
parent | 0523f8c84d0dd1530c725b08d881653f8522287f (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>
Diffstat (limited to 'deploy/adapters/ansible/ansible_modules/keystone_endpoint.py')
-rwxr-xr-x | deploy/adapters/ansible/ansible_modules/keystone_endpoint.py | 3 |
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: |