This is an automated email from the ASF dual-hosted git repository.

marat pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-karavan.git


The following commit(s) were added to refs/heads/main by this push:
     new 27c10f8  Statuses fix
27c10f8 is described below

commit 27c10f8bc9c9e04b506886aeb2df7b96f694f15e
Author: Marat Gubaidullin <marat.gubaidul...@gmail.com>
AuthorDate: Fri Dec 16 17:42:03 2022 -0500

    Statuses fix
---
 .../src/main/java/org/apache/camel/karavan/service/StatusService.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/karavan-app/src/main/java/org/apache/camel/karavan/service/StatusService.java 
b/karavan-app/src/main/java/org/apache/camel/karavan/service/StatusService.java
index 47ea8a4..e6fae3d 100644
--- 
a/karavan-app/src/main/java/org/apache/camel/karavan/service/StatusService.java
+++ 
b/karavan-app/src/main/java/org/apache/camel/karavan/service/StatusService.java
@@ -106,7 +106,7 @@ public class StatusService {
         LOGGER.info("Collect Camel status for project " + projectId);
         Project project = infinispanService.getProject(projectId);
         String path = project.getRuntime().equalsIgnoreCase("quarkus") ? 
"/q/health" : "/actuator/health";
-        String separator = ProfileManager.getActiveProfile().equals("dev") ? 
"." : "-";
+        String separator = ProfileManager.getActiveProfile().equals("dev") ? 
"-" : ".";
         String cluster = ProfileManager.getActiveProfile().equals("dev") ? 
kubernetesService.getCluster() : "svc.cluster.local";
         String url = "http://"; + projectId + separator + 
kubernetesService.getNamespace() + "." + cluster + path;
         CamelStatus cs = getCamelStatus(projectId, url);

Reply via email to