agent wasn't working anymore
This commit is contained in:
parent
bb7c8c8f94
commit
6a8d69af62
1 changed files with 3 additions and 2 deletions
|
|
@ -18,10 +18,11 @@ MANUFACTURERS = {
|
|||
|
||||
|
||||
def run(config):
|
||||
manufacturer = dmidecode.get_by_type('Chassis')[0].get('Manufacturer')
|
||||
dmi = dmidecode.parse()
|
||||
manufacturer = dmidecode.get_by_type(dmi, 'Chassis')[0].get('Manufacturer')
|
||||
|
||||
try:
|
||||
server = MANUFACTURERS[manufacturer](dmi=dmidecode)
|
||||
server = MANUFACTURERS[manufacturer](dmi=dmi)
|
||||
except KeyError:
|
||||
server = GenericHost
|
||||
|
||||
|
|
|
|||
Loading…
Add table
editor.link_modal.header
Reference in a new issue