filter for name and version if supplied
This commit is contained in:
parent
46927aeed7
commit
ee9f897f22
@ -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);
|
||||
|
Reference in New Issue
Block a user