mirror of
https://github.com/portainer/portainer.git
synced 2025-08-07 23:05:26 +02:00
fix(endpoints): check environment type before start metrics detection EE-4944 (#8392)
This commit is contained in:
parent
c9562d1252
commit
da7351cec7
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ func (handler *Handler) endpointInspect(w http.ResponseWriter, r *http.Request)
|
|||
}
|
||||
|
||||
isServerMetricsDetected := endpoint.Kubernetes.Flags.IsServerMetricsDetected
|
||||
if !isServerMetricsDetected && handler.K8sClientFactory != nil {
|
||||
if endpointutils.IsKubernetesEndpoint(endpoint) && !isServerMetricsDetected && handler.K8sClientFactory != nil {
|
||||
endpointutils.InitialMetricsDetection(
|
||||
endpoint,
|
||||
handler.DataStore.Endpoint(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue