fix: product None crash inventory

This commit is contained in:
Cyril Levis 2022-04-25 14:09:26 +02:00
commit 866d27b346
No known key found for this signature in database
GPG key ID: 6DB88737C11F5A48

View file

@ -309,7 +309,7 @@ class Inventory():
description = disk.get('description')
size = disk.get('size')
product = disk.get('product')
if logicalname in raid_devices or disk_type is None:
if logicalname in raid_devices or disk_type is None or product is None:
return True
non_raid_disks = [
'MR9361-8i',