Skip to content

Commit

Permalink
bug fix, version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
apocas committed Nov 28, 2015
1 parent 6cba150 commit f0739b5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions lib/docker.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,10 @@ Docker.prototype.createVolume = function(opts, callback) {
};

this.modem.dial(optsf, function(err, data) {
args.callback(err, self.getVolume(data.Name));
if(err) {
return args.callback(err);
}
args.callback(undefined, self.getVolume(data.Name));
});
};

Expand Down Expand Up @@ -474,7 +477,7 @@ Docker.prototype.pull = function(repoTag, opts, callback, auth) {
args.opts.fromImage = imageSrc.repository;
args.opts.tag = imageSrc.tag;

var argsf = [auth, args.opts, args.callback];
var argsf = [auth, args.opts, args.callback];
return this.createImage.apply(this, argsf);
};

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "dockerode",
"description": "Docker Remote API module.",
"version": "2.2.3",
"version": "2.2.4",
"author": "Pedro Dias <[email protected]>",
"maintainers": [
"apocas <[email protected]>"
Expand Down

0 comments on commit f0739b5

Please sign in to comment.