Ensures we can get multiple endpoints with the same name but different ports. (#1011)

This commit is contained in:
kevgliss
2017-12-04 13:13:02 -08:00
committed by GitHub
parent c311c0a221
commit a756a74b49
4 changed files with 14 additions and 4 deletions

View File

@ -72,7 +72,7 @@ def sync_endpoints(source):
return new, updated
for endpoint in endpoints:
exists = endpoint_service.get_by_dnsname(endpoint['dnsname'])
exists = endpoint_service.get_by_dnsname_and_port(endpoint['dnsname'], endpoint['port'])
certificate_name = endpoint.pop('certificate_name')
@ -99,7 +99,7 @@ def sync_endpoints(source):
new += 1
else:
current_app.logger.debug("Endpoint Updated: Name: {name}".format(name=endpoint['name']))
current_app.logger.debug("Endpoint Updated: {}".format(endpoint))
endpoint_service.update(exists.id, **endpoint)
updated += 1