Skip to content

Commit

Permalink
[hystrix-dashboard] isCircuitBreakerOpen is a normally a boolean from…
Browse files Browse the repository at this point in the history
… 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.
  • Loading branch information
cgray committed Oct 13, 2015
1 parent c66a548 commit ff5d4cf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<% } else {
/* We have some circuits that are open */
%>
Circuit <font color="orange"><%= isCircuitBreakerOpen.replace("true", "Open").replace("false", "Closed") %>)</font>
Circuit <font color="orange"><%= isCircuitBreakerOpen.toString().replace("true", "Open").replace("false", "Closed") %></font>
<% } %>
<% } %>
</div>
Expand Down

0 comments on commit ff5d4cf

Please sign in to comment.