fix config generation for plugins (#14990)
Ilya Mashchenko committed
May 1, 2023 at 14:25 UTC
a481b3001e2746e9f76e8cdee516df10b6cb8c3d
1 file changed
+1
-1
libnetdata/config/appconfig.c
+1
-1
@@ -831,7 +831,7 @@ void appconfig_generate(struct config *root, BUFFER *wb, int only_changed)
831
"#\n"
832
"\n# global netdata configuration\n");
833
834
- for(i = 0; i <= 16 ;i++) {
834
+ for(i = 0; i <= 17 ;i++) {
835
appconfig_wrlock(root);
836
for(co = root->first_section; co ; co = co->next) {
837
if(!strcmp(co->name, CONFIG_SECTION_GLOBAL)) pri = 0;