Skip to content

Commit

Permalink
Fixed misspelled check for datacenter (influxdata#8505)
Browse files Browse the repository at this point in the history
  • Loading branch information
prydin authored Dec 10, 2020
1 parent db78bcd commit df8bf21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/inputs/vsphere/endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit df8bf21

Please sign in to comment.