fix create UUID bug

This commit is contained in:
Dave Eddy 2015-09-21 17:12:33 -04:00
parent 0c2ade98ba
commit aaeb58730b

View File

@ -35,7 +35,7 @@ function do_create_instance(subcmd, opts, args, callback) {
function getImg(ctx, next) {
var id = args[0];
if (common.isUUID(id)) {
ctx.img = id;
ctx.img = {id: id};
next();
return;
}
@ -56,7 +56,7 @@ function do_create_instance(subcmd, opts, args, callback) {
var id = args[1];
if (common.isUUID(id)) {
ctx.img = id;
ctx.pkg = {id: id};
next();
return;
}