Merge "v3 endpoints won't have legacy ID's (bug 1150930)"

This commit is contained in:
Jenkins 2013-03-09 00:04:57 +00:00 committed by Gerrit Code Review
commit 756cd5a297
1 changed files with 1 additions and 1 deletions

View File

@ -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