From 7445b0be1913acbcd4c980f07f29515160283a60 Mon Sep 17 00:00:00 2001 From: Solvik Date: Tue, 27 Aug 2019 22:03:06 +0200 Subject: [PATCH 1/2] Fix QCT vendor class --- netbox_agent/vendors/qct.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/netbox_agent/vendors/qct.py b/netbox_agent/vendors/qct.py index 322fa37..b9702ab 100644 --- a/netbox_agent/vendors/qct.py +++ b/netbox_agent/vendors/qct.py @@ -2,6 +2,10 @@ from netbox_agent.server import ServerBase class QCTHost(ServerBase): + def __init__(self, *args, **kwargs): + super(QCTHost, self).__init__(*args, **kwargs) + self.manufacturer = 'QCT' + def is_blade(self): return 'Location In Chassis' in self.dmi.get_by_type('Baseboard')[0].keys() -- 2.47.0 From b5b292a0fa5ea0001753d41317126749fdc39adb Mon Sep 17 00:00:00 2001 From: Solvik Date: Tue, 27 Aug 2019 22:14:16 +0200 Subject: [PATCH 2/2] Update qct.py --- netbox_agent/vendors/qct.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox_agent/vendors/qct.py b/netbox_agent/vendors/qct.py index b9702ab..7e18e96 100644 --- a/netbox_agent/vendors/qct.py +++ b/netbox_agent/vendors/qct.py @@ -5,7 +5,7 @@ class QCTHost(ServerBase): def __init__(self, *args, **kwargs): super(QCTHost, self).__init__(*args, **kwargs) self.manufacturer = 'QCT' - + def is_blade(self): return 'Location In Chassis' in self.dmi.get_by_type('Baseboard')[0].keys() -- 2.47.0