Skip to content
Snippets Groups Projects
Commit 1ee8e01a authored by Guido Trotter's avatar Guido Trotter
Browse files

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
No related branches found
No related tags found
No related merge requests found
...@@ -1778,6 +1778,7 @@ def GenericInstanceCreate(mode, opts, args): ...@@ -1778,6 +1778,7 @@ def GenericInstanceCreate(mode, opts, args):
if mode == constants.INSTANCE_CREATE: if mode == constants.INSTANCE_CREATE:
start = opts.start start = opts.start
os_type = opts.os os_type = opts.os
force_variant = opts.force_variant
src_node = None src_node = None
src_path = None src_path = None
no_install = opts.no_install no_install = opts.no_install
...@@ -1785,6 +1786,7 @@ def GenericInstanceCreate(mode, opts, args): ...@@ -1785,6 +1786,7 @@ def GenericInstanceCreate(mode, opts, args):
elif mode == constants.INSTANCE_IMPORT: elif mode == constants.INSTANCE_IMPORT:
start = False start = False
os_type = None os_type = None
force_variant = False
src_node = opts.src_node src_node = opts.src_node
src_path = opts.src_dir src_path = opts.src_dir
no_install = None no_install = None
...@@ -1809,6 +1811,7 @@ def GenericInstanceCreate(mode, opts, args): ...@@ -1809,6 +1811,7 @@ def GenericInstanceCreate(mode, opts, args):
mode=mode, mode=mode,
start=start, start=start,
os_type=os_type, os_type=os_type,
force_variant=force_variant,
src_node=src_node, src_node=src_node,
src_path=src_path, src_path=src_path,
no_install=no_install, no_install=no_install,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment