Module: check_mk
Branch: master
Commit: 35cc6f0aa180b6ea9d3fe51409fd7e53a7decfef
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=35cc6f0aa180b6…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Fri Sep 25 10:47:26 2015 +0200
esx_vsphere_hostsystem: Fixed bug/typo
---
inventory/esx_vsphere_hostsystem | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/inventory/esx_vsphere_hostsystem b/inventory/esx_vsphere_hostsystem
index b2add03..59a518d 100644
--- a/inventory/esx_vsphere_hostsystem
+++ b/inventory/esx_vsphere_hostsystem
@@ -101,7 +101,7 @@ def inv_esx_vsphere_hostsystem(info):
node["product"] =
data["hardware.systemInfo"]["model"]
node["vendor"] =
data["hardware.systemInfo"]["vendor"]
# We only know for HP that ServiceTag is the serial
- if vendor == "HP":
+ if node["vendor"] == "HP":
node["serial"] =
data["hardware.systemInfo.otherIdentifyingInfo.ServiceTag"]["0"]
inv_info['esx_vsphere_hostsystem'] = {