Fixed misspelled check for datacenter (#8505)
This commit is contained in:
parent
d3031a467d
commit
6062265f94
|
|
@ -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)
|
// 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 {
|
for k, obj := range objects {
|
||||||
if obj.parentRef != nil {
|
if obj.parentRef != nil {
|
||||||
obj.dcname, _ = e.getDatacenterName(ctx, client, dcNameCache, *obj.parentRef)
|
obj.dcname, _ = e.getDatacenterName(ctx, client, dcNameCache, *obj.parentRef)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue