From: Xiaohua Zhang Date: Thu, 14 Feb 2019 09:10:52 +0000 (+0000) Subject: Fix bug of v3 to v2 endpoints mapping X-Git-Tag: 1.3.0~61 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=385c5ad928f661cdf25c639cc6da9638a8f349ab;p=multicloud%2Fopenstack.git Fix bug of v3 to v2 endpoints mapping Change-Id: I2d1b6bb57e7a3ed1c7d7de3246777ac1c62ff5b5 Issue-ID: MULTICLOUD-478 Signed-off-by: Xiaohua Zhang --- diff --git a/share/newton_base/proxy/identityV3.py b/share/newton_base/proxy/identityV3.py index 7932b8e3..302c5b07 100644 --- a/share/newton_base/proxy/identityV3.py +++ b/share/newton_base/proxy/identityV3.py @@ -205,8 +205,8 @@ class TokensV2(Tokens): elif v3_endpoint['interface'] == 'internal': v2_catalog1_endpoints['internalURL'] = v3_endpoint['url'] - if v2_catalog1_endpoints: - v2_catalog1['endpoints'].append(v2_catalog1_endpoints) + if v2_catalog1_endpoints: + v2_catalog1['endpoints'].append(v2_catalog1_endpoints) v2_catalog.append(v2_catalog1)