mirror of
https://github.com/portainer/portainer.git
synced 2025-07-30 10:49:40 +02:00
fix(endpoints): check environment type before start metrics detection EE-4944 (#8391)
This commit is contained in:
parent
851a3346a9
commit
cfdb9c126f
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
|
isServerMetricsDetected := endpoint.Kubernetes.Flags.IsServerMetricsDetected
|
||||||
if !isServerMetricsDetected && handler.K8sClientFactory != nil {
|
if endpointutils.IsKubernetesEndpoint(endpoint) && !isServerMetricsDetected && handler.K8sClientFactory != nil {
|
||||||
endpointutils.InitialMetricsDetection(
|
endpointutils.InitialMetricsDetection(
|
||||||
endpoint,
|
endpoint,
|
||||||
handler.DataStore.Endpoint(),
|
handler.DataStore.Endpoint(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue