Merge "Handle situation when endpoint deleted" into stable/juno

This commit is contained in:
Jenkins 2015-11-13 20:56:15 +00:00 committed by Gerrit Code Review
commit 25bf3ba843
1 changed files with 1 additions and 1 deletions

View File

@ -216,7 +216,7 @@ def get_service_from_catalog(catalog, service_type):
def get_version_from_service(service):
if service:
if service and service.get('endpoints'):
endpoint = service['endpoints'][0]
if 'interface' in endpoint:
return 3