use system info for the chassis part, ignoring the chassis information..

This commit is contained in:
Thomas Davis 2019-08-29 12:40:02 -07:00
commit 7497a34cdd

View file

@ -8,9 +8,9 @@ from netbox_agent.server import ServerBase
There are 3 serial numbers in the system There are 3 serial numbers in the system
1) Chassis - this the chassis 1) System - this is used for the chassis information.
2) Baseboard - this is used for the blade. 2) Baseboard - this is used for the blade.
3) System - this is ignored. 3) Chassis - this is ignored.
""" """
@ -43,7 +43,7 @@ class SupermicroHost(ServerBase):
def get_chassis(self): def get_chassis(self):
if self.is_blade(): if self.is_blade():
return "{} Chassis".format(self.system[0]['Product Name'].strip()) return self.system[0]['Product Name'].strip()
return self.get_product_name() return self.get_product_name()
def get_chassis_service_tag(self): def get_chassis_service_tag(self):