Skip to content

Commit

Permalink
Removing the circular dependency in instances.js.
Browse files Browse the repository at this point in the history
  • Loading branch information
C0rbz committed Jul 19, 2016
1 parent 37f19ac commit 0396e9b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions helpers/instances.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ var path = require('path')
, docker = new Docker({ socketPath: '/var/run/docker.sock'})
, sortBy = require('sort-by')
, _ = require('lodash')
, instances = require('./instances')
;


Expand Down Expand Up @@ -198,7 +197,7 @@ module.exports.refreshInstances = function (core) {

// true for instancesChangesBool because we need to update the cache and
// get the new instances list.
instances.getInstances(true, function(err, instancesList) {
module.exports.getInstances(true, function(err, instancesList) {

if (err) { return new Error(err); }

Expand Down

0 comments on commit 0396e9b

Please sign in to comment.