phsmith / python

Python scripts
1 stars 0 forks source link

NameError: name 'processors' is not defined #2

Closed arzWZM closed 4 years ago

arzWZM commented 4 years ago

Hi, I'm getting a NameError. This happens only with Windows Vmware snmp data. Linux Vmware snmp data doesn't produce this error.

Traceback (most recent call last): File "fusioninventory-xmlgenerator2", line 319, in SubElement(hardware, 'PROCESSORS').text = processors NameError: name 'processors' is not defined

phsmith commented 4 years ago

@arzWZM Could you attach a example of that snmp data?

arzWZM commented 4 years ago

Attached.

test.snmp.txt

phsmith commented 4 years ago

@arzWZM I've just pushed a fix, You can try that again.

arzWZM commented 4 years ago

That fixed the issue. There is another small issue related to processor count. I'll report that in a minute