Skip to content

Commit

Permalink
Environments: consider an API available if it has an endpoint or a re…
Browse files Browse the repository at this point in the history
…sourceIdentifier (data plane APIs get initialized with no endpoint)
  • Loading branch information
manicminer committed Aug 2, 2023
1 parent d608923 commit 8aa8816
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/environments/environment.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 8aa8816

Please sign in to comment.