Fixed misspelled check for datacenter (#8505)

This commit is contained in:
Pontus Rydin 2020-12-10 12:02:36 -05:00 committed by GitHub
parent d3031a467d
commit 6062265f94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)