Merge pull request #129 from olysonek/master
commands: Fix chassis type matching
This commit is contained in:
commit
796e329e2b
1 changed files with 1 additions and 1 deletions
|
|
@ -421,7 +421,7 @@ class commands:
|
|||
match = False
|
||||
elif option == "chassis_type":
|
||||
for chassis in dmidecode.chassis().values():
|
||||
chassis_type = chassis["data"]["Type"]
|
||||
chassis_type = chassis["data"]["Type"].decode("ascii")
|
||||
if re.match(value, chassis_type, re.IGNORECASE):
|
||||
break
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in a new issue