Skip to content

Commit e61302a

Browse files
fix network container get
1 parent 389e42e commit e61302a

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

lib/models/apis/mavis.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ util.inherits(Mavis, ApiClient);
2323
*/
2424
Mavis.prototype.findDockForNetwork = function (cb) {
2525
debug('findDockForNetwork', formatArgs(arguments));
26-
this.findDock('container_run', cb);
26+
this.findDockForContainer({}, cb);
2727
};
2828

2929
Mavis.prototype.findDockForBuild = function (build, cb) {
3030
var opts = {
3131
type: 'container_build'
3232
};
33-
opts.prevDuration= build.duration || 0;
33+
opts.prevDuration = build.duration || 0;
3434
this.findDock(opts, cb);
3535
};
3636

@@ -40,7 +40,6 @@ Mavis.prototype.findDockForContainer = function (contextVersion, cb) {
4040
};
4141
// if dockerHost is not an address, its invalid
4242
opts.prevDock = contextVersion.dockerHost || null;
43-
4443
this.findDock(opts, cb);
4544
};
4645

0 commit comments

Comments
 (0)