From 6062265f94ff65c6239e365454ae30db645b3271 Mon Sep 17 00:00:00 2001 From: Pontus Rydin Date: Thu, 10 Dec 2020 12:02:36 -0500 Subject: [PATCH] Fixed misspelled check for datacenter (#8505) --- plugins/inputs/vsphere/endpoint.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/inputs/vsphere/endpoint.go b/plugins/inputs/vsphere/endpoint.go index 49c875d93..9c1837713 100644 --- a/plugins/inputs/vsphere/endpoint.go +++ b/plugins/inputs/vsphere/endpoint.go @@ -439,7 +439,7 @@ func (e *Endpoint) discover(ctx context.Context) error { } // Fill in datacenter names where available (no need to do it for Datacenters) - if res.name != "Datacenter" { + if res.name != "datacenter" { for k, obj := range objects { if obj.parentRef != nil { obj.dcname, _ = e.getDatacenterName(ctx, client, dcNameCache, *obj.parentRef)