Check for inconsistency in Observium model
This commit is contained in:
parent
028966b35e
commit
4ade67947f
1 changed files with 4 additions and 1 deletions
|
@ -81,7 +81,10 @@ def search_ports(args):
|
||||||
for port in data['ports'].values():
|
for port in data['ports'].values():
|
||||||
if port['disabled'] == "1": continue
|
if port['disabled'] == "1": continue
|
||||||
if port['deleted'] == "1": continue
|
if port['deleted'] == "1": continue
|
||||||
|
if port['device_id'] in devices:
|
||||||
device = devices[port['device_id']]
|
device = devices[port['device_id']]
|
||||||
|
else:
|
||||||
|
continue
|
||||||
if device['disabled'] == "1": continue
|
if device['disabled'] == "1": continue
|
||||||
|
|
||||||
if args.short:
|
if args.short:
|
||||||
|
|
Loading…
Reference in a new issue