1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-28 06:00:06 +02:00

fix(portal-data): don't integrate cp-client (for now)

This commit is contained in:
Sérgio Ramos 2017-06-28 11:03:16 +01:00 committed by Judit Greskovits
parent 19635e7a0a
commit f94a0869a6

View File

@ -6,7 +6,7 @@ const EventEmitter = require('events');
const Util = require('util');
// 3rd party modules
const CPClient = require('cp-client');
// const CPClient = require('cp-client');
const DockerClient = require('docker-compose-client');
const Dockerode = require('dockerode');
const Hoek = require('hoek');
@ -71,9 +71,9 @@ module.exports = class Data extends EventEmitter {
this._docker = new Dockerode(settings.docker);
this._watcher = null;
if (settings.consul && settings.consul.address) {
CPClient.config(settings.consul);
}
// if (settings.consul && settings.consul.address) {
// CPClient.config(settings.consul);
// }
this._dockerCompose.on('error', (err) => {
this.emit('error', err);