Fix incorrect url in PAP consolidated healthcheck 65/128265/1
authora.sreekumar <ajith.sreekumar@bell.ca>
Mon, 4 Apr 2022 11:32:16 +0000 (12:32 +0100)
committera.sreekumar <ajith.sreekumar@bell.ca>
Mon, 4 Apr 2022 11:32:21 +0000 (12:32 +0100)
Change-Id: I0194483f371e1140ad56029c23b6f400df0dcbdc
Issue-ID: POLICY-4068
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
main/src/main/java/org/onap/policy/pap/main/rest/PolicyComponentsHealthCheckProvider.java

index 3ad740d..53f05a1 100644 (file)
@@ -148,7 +148,7 @@ public class PolicyComponentsHealthCheckProvider {
         // Check PAP itself excluding connectivity to Policy DB
         HealthCheckReport papReport = new HealthCheckProvider().performHealthCheck(false);
         papReport
-            .setUrl(isHttps ? "https://" : "http://" + papReport.getUrl() + ":" + port + POLICY_PAP_HEALTHCHECK_URI);
+            .setUrl((isHttps ? "https://" : "http://") + papReport.getUrl() + ":" + port + POLICY_PAP_HEALTHCHECK_URI);
         if (!papReport.isHealthy()) {
             isHealthy = false;
         }