Fix pipeline for pylint error

This commit is contained in:
Suvendhu Hansa 2024-05-16 12:11:43 +05:30
parent 9f3ce12c73
commit a0c313bf67
2 changed files with 7 additions and 0 deletions

View file

@ -367,6 +367,10 @@ def download_and_build_plugins(plugins, vendor_prefix):
elif proto == "local": elif proto == "local":
repo_path = repo repo_path = repo
print(f' Processing {get_repo_version_info(repo, proto)}') print(f' Processing {get_repo_version_info(repo, proto)}')
else:
BBF_ERROR_CODE += 1
print(f"Unknown protocol: {proto}")
continue
LIST_FILES = [] LIST_FILES = []
os.chdir(repo_path) os.chdir(repo_path)

View file

@ -803,6 +803,9 @@ def chech_obj_with_other_obj(obj, dmobject):
def object_parse_childs(dmobject, level, generatelist, check_obj): def object_parse_childs(dmobject, level, generatelist, check_obj):
obj = None
exist = 0
if generatelist == 0 and (dmobject.get('name')).count(".") == 2: if generatelist == 0 and (dmobject.get('name')).count(".") == 2:
generatelistfromfile(dmobject) generatelistfromfile(dmobject)
if check_obj == 1 and ("tr-181" in sys.argv[1] or "tr-104" in sys.argv[1]): if check_obj == 1 and ("tr-181" in sys.argv[1] or "tr-104" in sys.argv[1]):