From ff5d4cf67493f099c901977b5e078c0f8cdfd256 Mon Sep 17 00:00:00 2001 From: cgray Date: Mon, 12 Oct 2015 17:52:27 -0700 Subject: [PATCH] [hystrix-dashboard] isCircuitBreakerOpen is a normally a boolean from the HystrixStream servlet, however these replace() operations assume that it is a string. There are certain instances where Turbine does not return back a String when isCircuitBreakerOpen is aggregated. This enforces the boolean to be a string first, regardless of what Turbine may/may not do. --- .../components/hystrixCommand/templates/hystrixCircuit.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hystrix-dashboard/src/main/webapp/components/hystrixCommand/templates/hystrixCircuit.html b/hystrix-dashboard/src/main/webapp/components/hystrixCommand/templates/hystrixCircuit.html index a8189b8eb..4d97f22a4 100644 --- a/hystrix-dashboard/src/main/webapp/components/hystrixCommand/templates/hystrixCircuit.html +++ b/hystrix-dashboard/src/main/webapp/components/hystrixCommand/templates/hystrixCircuit.html @@ -43,7 +43,7 @@ <% } else { /* We have some circuits that are open */ %> - Circuit <%= isCircuitBreakerOpen.replace("true", "Open").replace("false", "Closed") %>) + Circuit <%= isCircuitBreakerOpen.toString().replace("true", "Open").replace("false", "Closed") %> <% } %> <% } %>