Fix QCT vendor class #48

Merged
Solvik merged 2 commits from fix-qct into master 2019-08-28 12:06:46 +02:00

View file

@ -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()