diff --git a/lib/do_create_instance.js b/lib/do_create_instance.js index ffa74f0..c65f968 100644 --- a/lib/do_create_instance.js +++ b/lib/do_create_instance.js @@ -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; }