diff --git a/lib/tritonapi.js b/lib/tritonapi.js index e5493d6..fe02a6c 100644 --- a/lib/tritonapi.js +++ b/lib/tritonapi.js @@ -273,8 +273,10 @@ TritonApi.prototype.getImage = function getImage(name, cb) { var version = s[1]; var opts = {}; - if (version) + if (version) { + opts.name = name; opts.version = version; + } this.cloudapi.listImages(opts, function (err, imgs) { if (err) { return cb(err);