Merge "v3 endpoints won't have legacy ID's (bug 1150930)"
This commit is contained in:
commit
756cd5a297
@ -58,7 +58,7 @@ class Endpoint(controller.V2Controller):
|
||||
self.assert_admin(context)
|
||||
legacy_endpoints = {}
|
||||
for endpoint in self.catalog_api.list_endpoints(context):
|
||||
if not endpoint['legacy_endpoint_id']:
|
||||
if not endpoint.get('legacy_endpoint_id'):
|
||||
# endpoints created in v3 should not appear on the v2 API
|
||||
continue
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user