[icinga-checkins] icinga.org: icinga-core/test/core: classic-ui: fixed invalid JSON for hostgroups overview #2680

git at icinga.org git at icinga.org
Thu Jun 21 09:59:45 CEST 2012


Module: icinga-core
Branch: test/core
Commit: 111aac16a5d76c96b90eac24e0964728ce7fd95a
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=111aac16a5d76c96b90eac24e0964728ce7fd95a

Author: Torsten Rehn <trehn at nagify.com>
Date:   Tue Jun 12 22:05:03 2012 +0200

classic-ui: fixed invalid JSON for hostgroups overview #2680

refs: #2680

Signed-off-by: Ricardo Bartels <ricardo at bitchbrothers.com>

---

 Changelog    |    1 +
 cgi/status.c |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/Changelog b/Changelog
index adfad24..da90341 100644
--- a/Changelog
+++ b/Changelog
@@ -8,6 +8,7 @@ Thanks to all contributers, testers and developers. Please read AUTHORS and THAN
 
 FIXES
 * classic ui: Fixed status.cgi time out when displaying hostgroups in large environments #2617 - RB
+* classic ui: Fixed Invalid JSON output for hostgroup overview #2680 - trehn
 
 
 1.7.0 - 15/05/2012
diff --git a/cgi/status.c b/cgi/status.c
index fc18b97..2474170 100644
--- a/cgi/status.c
+++ b/cgi/status.c
@@ -4251,6 +4251,7 @@ void show_hostgroup_overviews(void) {
 			/* always add a comma, except for the first line */
 			if (json_start == FALSE)
 				printf(",\n");
+			json_start = FALSE;
 		} else {
 			if (current_column == 1)
 				printf("<TR>\n");





More information about the icinga-checkins mailing list