Skip to content

Commit

Permalink
ioc: fix dbLoadGroups command.
Browse files Browse the repository at this point in the history
Calling GroupConfigProcessor().loadConfigFiles() reads and clears
config.groupConfigFiles, and loads the JSON files before iocInit. When
loadConfigFiles() is called again from an init-hook,
config.groupConfigFiles is empty, and no JSON files are actually read,
so no groups in those files are loaded.

This change removes error messages at the point where dbLoadGroup is
called; errors are now displayed only during iocInit.
  • Loading branch information
ericonr committed Nov 22, 2024
1 parent 8bf16de commit eb99d36
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion ioc/groupsourcehooks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ namespace ioc {
static
void dbLoadGroupCmd(const char* jsonFileName, const char *macros) {
iocshSetError(!!dbLoadGroup(jsonFileName, macros));
GroupConfigProcessor().loadConfigFiles();
}

/**
Expand Down

0 comments on commit eb99d36

Please sign in to comment.