From 126a10e065f2521cd0141a3235dfe757c35e5728 Mon Sep 17 00:00:00 2001 From: Thomas Klausner Date: Sat, 6 Dec 2025 22:41:21 +0100 Subject: [PATCH] In success case, CGI scripts should return 0, not 1. --- cgi-bin/collection.modified.cgi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cgi-bin/collection.modified.cgi b/cgi-bin/collection.modified.cgi index 28f702c..431c405 100755 --- a/cgi-bin/collection.modified.cgi +++ b/cgi-bin/collection.modified.cgi @@ -379,7 +379,7 @@ sub list_hosts_json { -Charset => 'utf-8' ); print STDOUT to_json( $host_ref, { pretty => 1, indent => 2 } ); - return (1); + return (0); } # list_hosts_json sub _string_to_color { @@ -492,7 +492,7 @@ sub action_show_host_json ); print STDOUT to_json ([sort (keys %$all_plugins)], { pretty => 1, indent => 2 }) . "\n"; - return (1); + return (0); } # action_show_host_json @@ -787,7 +787,7 @@ sub action_show_plugin_json { year => [@plugin_list_year], decade => [@plugin_list_decade]}, { pretty => 1, indent => 2 }) . "\n"; - return (1); + return (0); } # action_show_plugin_json sub action_show_type {