From 1ee8e01a6fb1eda255f1e7a7a9d56fd7b93c6481 Mon Sep 17 00:00:00 2001 From: Guido Trotter <ultrotter@google.com> Date: Tue, 29 Jun 2010 16:31:40 +0100 Subject: [PATCH] Pass force variant option at instance creation This was supposed to be done in "06073e857e3b518c7195d57306ae01793240c0c2" but by mistake the field was added to batch create rather than the normal instance create. Signed-off-by: Guido Trotter <ultrotter@google.com> Reviewed-by: Michael Hanselmann <hansmi@google.com> --- lib/cli.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/cli.py b/lib/cli.py index b18aac6a7..203a19fe5 100644 --- a/lib/cli.py +++ b/lib/cli.py @@ -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, -- GitLab