Skip to content

Commit

Permalink
mgmtctrl: try hostnamectl for vendor
Browse files Browse the repository at this point in the history
Signed-off-by: Dustin Miller <[email protected]>
  • Loading branch information
Dustin Miller committed Sep 18, 2023
1 parent d5b4b2c commit 4e93928
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packethardware/component/management_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ def __init__(self):
self.name = self.model + " Base Management Controller"

self.vendor = utils.normalize_vendor(utils.get_mc_info("vendor"))

if "unknown" in self.vendor.lower():
self.vendor = utils.get_hardwarevendor_from_hostnamectl(self)

self.serial = utils.get_mc_info("guid")

self.data = {"aux": utils.get_mc_info("aux")}
Expand Down

0 comments on commit 4e93928

Please sign in to comment.