Change manufacturer detection
This commit is contained in:
parent
59620704e0
commit
6dc8951352
1 changed files with 1 additions and 1 deletions
|
|
@ -28,7 +28,7 @@ def run(config):
|
|||
raise Exception('virtual.cluster_name parameter is mandatory because it\'s a VM')
|
||||
server = VirtualMachine(dmi=dmi)
|
||||
else:
|
||||
manufacturer = dmidecode.get_by_type(dmi, 'Chassis')[0].get('Manufacturer')
|
||||
manufacturer = dmidecode.get_by_type(dmi, 'System')[0].get('Manufacturer')
|
||||
try:
|
||||
server = MANUFACTURERS[manufacturer](dmi=dmi)
|
||||
except KeyError:
|
||||
|
|
|
|||
Loading…
Add table
editor.link_modal.header
Reference in a new issue