add functions to ignore serial number in case the serial didn't come from manafactures

This commit is contained in:
congnv1 2022-09-09 21:29:37 +07:00
commit 853e7b47d4

View file

@ -88,4 +88,4 @@ class SupermicroHost(ServerBase):
logging.error('IPMICFG does not seem to be present on your system. Add it your path or '
'check the compatibility of this project with your distro.')
sys.exit(1)
return subprocess.getoutput('IPMICFG -fru PS')
return subprocess.getoutput('IPMICFG -fru BS')