diff --git a/packages/stack/communication/src/index.js b/packages/stack/communication/src/index.js index ae33dc349..b66047119 100644 --- a/packages/stack/communication/src/index.js +++ b/packages/stack/communication/src/index.js @@ -16,6 +16,9 @@ class Communication { }); this.events.setCommandHandler("communication:node:start", (communicationConfig, cb) => { + if (!communicationConfig.enabled) { + return cb(); + } const clientName = communicationConfig.provider; const client = this.communicationNodes[clientName]; if (!client) return cb("communication " + clientName + " not found"); diff --git a/packages/stack/namesystem/src/index.js b/packages/stack/namesystem/src/index.js index 754bf114a..fd0eccdc7 100644 --- a/packages/stack/namesystem/src/index.js +++ b/packages/stack/namesystem/src/index.js @@ -17,6 +17,9 @@ export default class Namesystem { }); this.events.setCommandHandler("namesystem:node:start", (namesystemConfig, cb) => { + if (!namesystemConfig.enabled) { + return cb(); + } const nodeName = namesystemConfig.provider; const client = this.namesystemNodes[nodeName]; if (!client) return cb(__("Namesystem client %s not found", nodeName)); diff --git a/packages/stack/storage/src/index.js b/packages/stack/storage/src/index.js index a07a0d3a7..33aaf1374 100644 --- a/packages/stack/storage/src/index.js +++ b/packages/stack/storage/src/index.js @@ -16,6 +16,9 @@ class Storage { }); this.events.setCommandHandler("storage:node:start", (storageConfig, cb) => { + if (!storageConfig.enabled) { + return cb(); + } const clientName = storageConfig.upload.provider; const client = this.storageNodes[clientName]; if (!client) return cb("storage " + clientName + " not found");