Skip to content
Snippets Groups Projects
Commit c4b00ff6 authored by Robert Latta's avatar Robert Latta
Browse files

corrected empty locations check

parent 5cc09fc0
No related branches found
No related tags found
No related merge requests found
...@@ -210,7 +210,8 @@ def get_interface_services_and_locs(ims_source_equipment, ims_interface, r): ...@@ -210,7 +210,8 @@ def get_interface_services_and_locs(ims_source_equipment, ims_interface, r):
result['services'] = json.loads(raw_services.decode('utf-8')) result['services'] = json.loads(raw_services.decode('utf-8'))
result['related-services'] = \ result['related-services'] = \
list(get_related_services(ims_source_equipment, ims_interface, r)) list(get_related_services(ims_source_equipment, ims_interface, r))
result['locations'] = _location_from_services(result['services'], r) result['locations'] = \
list(_location_from_services(result['services'], r))
if not result['services']: if not result['services']:
result.pop('services', None) result.pop('services', None)
if result['related-services']: if result['related-services']:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment