Commit 1ee8e01a authored by Guido Trotter's avatar Guido Trotter

Pass force variant option at instance creation

This was supposed to be done in
"06073e85" but by mistake the field was
added to batch create rather than the normal instance create.
Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
parent de372295
......@@ -1778,6 +1778,7 @@ def GenericInstanceCreate(mode, opts, args):
if mode == constants.INSTANCE_CREATE:
start = opts.start
os_type = opts.os
force_variant = opts.force_variant
src_node = None
src_path = None
no_install = opts.no_install
......@@ -1785,6 +1786,7 @@ def GenericInstanceCreate(mode, opts, args):
elif mode == constants.INSTANCE_IMPORT:
start = False
os_type = None
force_variant = False
src_node = opts.src_node
src_path = opts.src_dir
no_install = None
......@@ -1809,6 +1811,7 @@ def GenericInstanceCreate(mode, opts, args):
mode=mode,
start=start,
os_type=os_type,
force_variant=force_variant,
src_node=src_node,
src_path=src_path,
no_install=no_install,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment