Skip to content
Snippets Groups Projects
Commit a5adbc12 authored by Erik Reid's avatar Erik Reid
Browse files

flatten related services list

parent fc88dd66
No related branches found
No related tags found
No related merge requests found
......@@ -76,10 +76,11 @@ def get_trap_metadata(source_equipment, interface):
def _related_services():
for related in related_interfaces(source_equipment, interface):
s = r.get('opsdb:interface_services:%s:%s'
rs = r.get('opsdb:interface_services:%s:%s'
% (source_equipment, related))
if s:
yield json.loads(s.decode('utf-8'))
if rs:
for s in json.loads(rs.decode('utf-8')):
yield s
related_services = list(_related_services())
if 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