CDP-8328: Add normandie status and knox statuses to Hosts.get() EnvHosts.getHostByHostName() #1763
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
In deploy-board, Normandie and Knox statuses are to be added to
hosts/host_details.html
.hosts/host_details.html
is rendered in two places, using a list of hosts coming from two different methodshosts = hosts_helper.get_hosts_by_name(request, hostname)
:teletraan/deploy-board/deploy_board/webapp/host_views.py
Line 150 in b0f6c6a
hosts = environ_hosts_helper.get_host_by_env_and_hostname(request, name, stage, hostname)
teletraan/deploy-board/deploy_board/webapp/host_views.py
Line 203 in b0f6c6a
This means that both
get_hosts_by_name
andget_host_by_env_and_hostname
needs to return normandie and knox statuses.This is done by:
hosts_and_agents
tableAssociated PRs