From 48f07421f10e0b4f19713ea86875f82eb15714f3 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Tue, 13 May 2008 12:08:14 +0200 Subject: [PATCH] src/utils_threshold.c: Fix the `Instance' option inside of `Type' blocks. Thanks to `kyrone' for pointing this out. --- src/utils_threshold.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils_threshold.c b/src/utils_threshold.c index 6c131ba6..b4fb8554 100644 --- a/src/utils_threshold.c +++ b/src/utils_threshold.c @@ -299,7 +299,7 @@ static int ut_config_type (const threshold_t *th_orig, oconfig_item_t *ci) if (strcasecmp ("Instance", option->key) == 0) status = ut_config_type_instance (&th, option); - if (strcasecmp ("DataSource", option->key) == 0) + else if (strcasecmp ("DataSource", option->key) == 0) status = ut_config_type_datasource (&th, option); else if ((strcasecmp ("WarningMax", option->key) == 0) || (strcasecmp ("FailureMax", option->key) == 0)) -- 2.11.0