From 39e397816182843ec1d3e166cbb2389e368f74d5 Mon Sep 17 00:00:00 2001 From: calzoneman Date: Tue, 9 Feb 2016 23:04:07 -0800 Subject: [PATCH] Fix --- src/legacymodule.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/legacymodule.js b/src/legacymodule.js index e2d18f3f..0e91cd9d 100644 --- a/src/legacymodule.js +++ b/src/legacymodule.js @@ -1,12 +1,22 @@ import NullClusterClient from './io/cluster/nullclusterclient'; +import Config from './config'; +import IOConfiguration from './configuration/ioconfig'; class LegacyModule { + getIOConfig() { + if (!this.ioConfig) { + this.ioConfig = IOConfiguration.fromOldConfig(Config); + } + + return this.ioConfig; + } + getClusterClient() { - return new NullClusterClient(); + return new NullClusterClient(this.getIOConfig()); } onReady() { - + } }