afb-config: Fully exclude config monitoring
authorJosé Bollo <jose.bollo@iot.bzh>
Thu, 15 Feb 2018 15:41:54 +0000 (16:41 +0100)
committerJosé Bollo <jose.bollo@iot.bzh>
Thu, 15 Feb 2018 16:23:33 +0000 (17:23 +0100)
Change-Id: I93b3d49f46d4dec607b08cc439b6cb06cf68ec32
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
src/afb-config.c

index f7e5000..fc3f5d7 100644 (file)
@@ -738,7 +738,9 @@ void afb_config_dump(struct afb_config *config)
        B(no_ldpaths)
        B(noHttpd)
        B(background)
+#if defined(WITH_MONITORING_OPTION)
        B(monitoring)
+#endif
        B(random_token)
        P("---END-OF-CONFIG---\n");
 
@@ -866,7 +868,9 @@ struct json_object *afb_config_json(struct afb_config *config)
        B(no_ldpaths)
        B(noHttpd)
        B(background)
+#if defined(WITH_MONITORING_OPTION)
        B(monitoring)
+#endif
        B(random_token)
 
 #undef E