From 8aa881690f25d10665096f1eab164575afe81de7 Mon Sep 17 00:00:00 2001 From: Tom Bamford Date: Wed, 2 Aug 2023 16:46:57 +0100 Subject: [PATCH] Environments: consider an API available if it has an endpoint or a resourceIdentifier (data plane APIs get initialized with no endpoint) --- sdk/environments/environment.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/environments/environment.go b/sdk/environments/environment.go index eb149b8e523..3c33b9b4c14 100644 --- a/sdk/environments/environment.go +++ b/sdk/environments/environment.go @@ -166,7 +166,7 @@ func (e *ApiEndpoint) withResourceIdentifier(identifier string) *ApiEndpoint { } func (e *ApiEndpoint) Available() bool { - return e != nil && e.endpoint != nil + return e != nil && (e.resourceIdentifier != nil || e.endpoint != nil) } func (e *ApiEndpoint) DomainSuffix() (*string, bool) {