From 2118e694cd22f33e4a96aaeaf364e8d490cdb4d3 Mon Sep 17 00:00:00 2001 From: Adrien Waksberg Date: Thu, 8 Dec 2022 15:51:18 +0100 Subject: [PATCH] fix: bug in check command template --- templates/check_commands.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/check_commands.conf.j2 b/templates/check_commands.conf.j2 index 3bb831e..2e1f5f1 100644 --- a/templates/check_commands.conf.j2 +++ b/templates/check_commands.conf.j2 @@ -2,7 +2,7 @@ {% for name, command in icinga2_check_commands.items() %} object CheckCommand "{{ name }}" { -{% if command is not string %} +{% if command.command is not string %} command = ["{{ command.command | join('", "') }}"] {% else %} command = {{ command.command }}