Commit 0dcbb602 authored by Andrey Vertiprahov's avatar Andrey Vertiprahov
Browse files

Merge branch 'fix-avs-siklu-inventory-225' into 'microservices'

Fix Siklu.EH.get_inventory filter empty part_no.

See merge request !1194
parents 375cc418 48790d97
Pipeline #8184 failed with stages
in 5 minutes and 22 seconds
......@@ -5,13 +5,12 @@
# Copyright (C) 2007-2016 The NOC Project
# See LICENSE for details
# ---------------------------------------------------------------------
# Python modules
import re
# NOC modules
from noc.core.script.base import BaseScript
from import IGetInventory
from import InterfaceTypeError
class Script(BaseScript):
......@@ -41,11 +40,14 @@ class Script(BaseScript):
vendor ="vendor").upper()
vendor = "NONAME"
part_no ="part_no")
if not part_no:
p = {
"number": int("number") or 0),
"vendor": vendor,
"part_no": part_no,
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment