diff --git a/deploy-board/deploy_board/templates/environs/env_hosts.html b/deploy-board/deploy_board/templates/environs/env_hosts.html index f0ac232378..fc6d20ff4d 100644 --- a/deploy-board/deploy_board/templates/environs/env_hosts.html +++ b/deploy-board/deploy_board/templates/environs/env_hosts.html @@ -80,7 +80,7 @@

{{ title }}

- {% if title != "Failed Hosts" and show_protected_hosts is None %} + {% if title != "Failed Hosts" and show_protected_hosts === False %}

{% endif %} diff --git a/deploy-board/deploy_board/templates/hosts/hosts.tmpl b/deploy-board/deploy_board/templates/hosts/hosts.tmpl index e581704ae6..c65f58ad88 100644 --- a/deploy-board/deploy_board/templates/hosts/hosts.tmpl +++ b/deploy-board/deploy_board/templates/hosts/hosts.tmpl @@ -44,7 +44,7 @@ StartDate(-08:00) LastUpdate ErrorCode - {% if show_protection_status %} + {% if show_protected_hosts %} ProtectionStatus {% endif %} @@ -60,7 +60,7 @@ N/A N/A N/A - {% if show_protection_status %} + {% if show_protected_hosts %} N/A {% endif %} {% elif agent.lastErrorCode|isProvisioningHost %} @@ -73,7 +73,7 @@ N/A N/A N/A - {% if show_protection_status %} + {% if show_protected_hosts %} N/A {% endif %} {% else %} @@ -86,7 +86,7 @@ {{ agent.startDate|convertTimestamp }} {{ agent.lastUpdateDate|convertTimestamp }} {{ agent.lastErrorCode }} - {% if show_protection_status %} + {% if show_protected_hosts %} {% if agent.hostId in protected_hosts %} Protected diff --git a/deploy-board/deploy_board/webapp/env_views.py b/deploy-board/deploy_board/webapp/env_views.py index f84192ade2..ce9b4eb238 100644 --- a/deploy-board/deploy_board/webapp/env_views.py +++ b/deploy-board/deploy_board/webapp/env_views.py @@ -1423,7 +1423,7 @@ def get_hosts(request, name, stage): title = "All hosts" agents_wrapper = {} - show_protected_hosts = request.GET.get("show_protected_hosts") + show_protected_hosts = request.GET.get("show_protected_hosts") is not None host_ids = [] for agent in agents: if agent['deployId'] not in agents_wrapper: