- {% 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: