Module: check_mk
Branch: master
Commit: 48fcf48a1f1095c84c2bce608b20dca9bc12dcbc
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=48fcf48a1f1095…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Fri Feb 9 12:54:03 2018 +0100
Fixed inventory_plugin esx_vsphere_clusters which return wrong numeration format
Change-Id: I7723d260e511c178870a0e3bfe288f6575d481c5
---
inventory/esx_vsphere_clusters | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/inventory/esx_vsphere_clusters b/inventory/esx_vsphere_clusters
index 93b836c..8597803 100644
--- a/inventory/esx_vsphere_clusters
+++ b/inventory/esx_vsphere_clusters
@@ -41,7 +41,7 @@ def inv_esx_vsphere_clusters(info):
datacenters.setdefault(datacenter, {})
datacenters[datacenter].setdefault(cluster, {})
datacenters[datacenter][cluster]["name"] = cluster
- datacenters[datacenter][cluster][what] = entries
+ datacenters[datacenter][cluster][what] = [{"name": e} for e in
entries]
for dc_name, clusters in datacenters.items():
data = { "name": dc_name, "clusters": [] }