Skip to content

Commit

Permalink
fixing #199
Browse files Browse the repository at this point in the history
  • Loading branch information
apocas committed Dec 8, 2015
1 parent 6696a58 commit 6aa1582
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion lib/docker.js
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,10 @@ 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 = [args.opts, args.callback];
if(auth) {
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.6",
"version": "2.2.7",
"author": "Pedro Dias <[email protected]>",
"maintainers": [
"apocas <[email protected]>"
Expand Down

0 comments on commit 6aa1582

Please sign in to comment.