Browse Source

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

Jenkins 3 years ago
parent
commit
25bf3ba843
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      openstack_dashboard/api/base.py

+ 1
- 1
openstack_dashboard/api/base.py View File

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

Loading…
Cancel
Save