From 50fd7db7734c53efbea5ba848c2985cdad26e12a Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Sat, 2 Jan 2021 14:44:26 +0100 Subject: [PATCH] link hostnames, not service names --- service.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/service.py b/service.py index b116d01..3850821 100755 --- a/service.py +++ b/service.py @@ -51,11 +51,11 @@ def render_services_per_host(host, data): services_template = """
  • - {0} - {2} + {} + {}
  • """ - services_hostname_template = """

    {}

    OK
    """ + services_hostname_template = """

    {0}

    {2}
    """ for service in sorted(data['services']['results'], key=lambda x: x['attrs']['display_name']): if service['attrs']['host_name'] == host: