From f512e7a0a971013eb49f233c72963fd54a78c8ca Mon Sep 17 00:00:00 2001 From: sinavir Date: Wed, 27 Mar 2024 18:49:05 +0100 Subject: [PATCH] fix: replace list.push by list.append --- netbox_agent/lshw.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/netbox_agent/lshw.py b/netbox_agent/lshw.py index c79f95e..876df97 100644 --- a/netbox_agent/lshw.py +++ b/netbox_agent/lshw.py @@ -77,11 +77,11 @@ class LSHW(): # newer versions of lshw can return a list of names, see issue #227 if not isinstance(i["name"], list): if i["name"].startswith("unknown"): - unkn_intfs.push(i) + unkn_intfs.append(i) else: for j in i["name"]: if j.startswith("unknown"): - unkn_intfs.push(j) + unkn_intfs.append(j) unkn_name = "unknown{}".format(len(unkn_intfs)) self.interfaces.append({