Merge "Why .pop()'ing urls first is important"

This commit is contained in:
Jenkins
2013-02-04 23:52:03 +00:00
committed by Gerrit Code Review

View File

@@ -86,8 +86,10 @@ class Endpoint(controller.V2Controller):
legacy_endpoint_ref = endpoint.copy()
# pop all urls off the endpoint so we don't persist them more than once
urls = dict((i, endpoint.pop('%surl' % i)) for i in INTERFACES
if endpoint.get('%surl' % i) is not None)
legacy_endpoint_id = uuid.uuid4().hex
for interface, url in urls.iteritems():
endpoint_ref = endpoint.copy()