From 13435dcbf4edbecb2268911d1ffb9807d4859f55 Mon Sep 17 00:00:00 2001 From: Jordan Webb Date: Fri, 19 Aug 2022 23:15:01 -0500 Subject: [PATCH] Allow non-unique config sections --- config.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config.go b/config.go index 1430a70..0cd90e4 100644 --- a/config.go +++ b/config.go @@ -318,8 +318,9 @@ func parseRoutinesConfig(routines *[]RoutineSpawner, cfg *ini.File, sectionName // ParseConfig takes the path of a configuration file and parses it into Configuration func ParseConfig(path string) (*Configuration, error) { iniOpt := ini.LoadOptions{ - Insensitive: true, - AllowShadows: true, + Insensitive: true, + AllowShadows: true, + AllowNonUniqueSections: true, } cfg, err := ini.LoadSources(iniOpt, path)