From c753c2de6484428035da3b06e0db4c2744006435 Mon Sep 17 00:00:00 2001 From: Mohd Uzair Date: Mon, 4 Mar 2024 17:08:21 +0530 Subject: [PATCH] Update models/controllers/meshery_broker.go Signed-off-by: Mohd Uzair --- models/controllers/meshery_broker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/controllers/meshery_broker.go b/models/controllers/meshery_broker.go index bbd0a9c1..f2be3c10 100644 --- a/models/controllers/meshery_broker.go +++ b/models/controllers/meshery_broker.go @@ -46,7 +46,7 @@ func (mb *mesheryBroker) GetStatus() MesheryControllerStatus { _, err = operatorClient.CoreV1Alpha1().Brokers("meshery").Get(context.TODO(), "meshery-broker", metav1.GetOptions{}) if err == nil { monitoringEndpoint, endpointErr := mb.GetEndpointForPort(brokerMonitoringPortName) - if endpoint_err == nil { + if endpointErr == nil { if ConnectivityTest(MesheryServer, monitoringEndpoint) { mb.status = Connected return mb.status