From aaeb58730b9c7b5b833055b286be13b602226100 Mon Sep 17 00:00:00 2001 From: Dave Eddy Date: Mon, 21 Sep 2015 17:12:33 -0400 Subject: [PATCH] fix create UUID bug --- lib/do_create_instance.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }