diff --git a/CHANGELOG.md b/CHANGELOG.md index 0df07f19..9b4c4bf3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ - Fixed generated systemd file for clusteriohost not enabling source maps. - Fixed ctl not exporting types used for adding commands to ctl plugins. +- Fixed controller only plugins throwing an error about missing a config field on startup out when added to hosts. ## Version 2.0.0-alpha.14 diff --git a/packages/host/src/Host.ts b/packages/host/src/Host.ts index 5ecfb5bd..7381ad36 100644 --- a/packages/host/src/Host.ts +++ b/packages/host/src/Host.ts @@ -377,7 +377,10 @@ export default class Host extends lib.Link { async loadPlugins() { for (let pluginInfo of this.pluginInfos) { - if (!this.config.get(`${pluginInfo.name}.load_plugin` as keyof lib.HostConfigFields)) { + if ( + !pluginInfo.hostEntrypoint && !pluginInfo.instanceEntrypoint + || !this.config.get(`${pluginInfo.name}.load_plugin` as keyof lib.HostConfigFields) + ) { continue; }