Skip to content

Commit

Permalink
Merge pull request #542 from nahuel/patch-1
Browse files Browse the repository at this point in the history
importImage: fixed default options
  • Loading branch information
apocas authored Jan 12, 2020
2 parents cb4c65d + fdd19d5 commit 15b6ed5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/docker.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,11 @@ Docker.prototype.importImage = function(file, opts, callback) {
var self = this;
if (!callback && typeof opts === 'function') {
callback = opts;
opts = {};
opts = undefined;
}

if (!opts)
opts = {};

opts.fromSrc = '-';

Expand Down

0 comments on commit 15b6ed5

Please sign in to comment.