Skip to content

Commit

Permalink
Add host to section line in service-status (#78) (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
willkg authored Jan 30, 2025
1 parent 48b3efb commit d4681ee
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions obs_common/service_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,10 @@ def main(main_branch, hosts):
else:
env_name, service = parts

if current_section != env_name:
out.section(env_name)
current_section = env_name
section_key = f"{env_name}: {service}"
if current_section != section_key:
out.section(section_key)
current_section = section_key

service = service.rstrip("/")
resp = fetch(f"{service}/__version__")
Expand Down

0 comments on commit d4681ee

Please sign in to comment.