Commit de372295 authored by Guido Trotter's avatar Guido Trotter
Browse files

BatchCreate: get force_variant from specs not opts



There is no such option on the command line, and for batch creation it's
better to get the option from the json file (with a default of false, as
we fixed it in the previous patch).
Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
parent 27ba7eab
......@@ -479,7 +479,7 @@ def BatchCreate(opts, args):
disk_template=specs['template'],
mode=constants.INSTANCE_CREATE,
os_type=specs['os'],
force_variant=opts.force_variant,
force_variant=specs["force_variant"],
pnode=specs['primary_node'],
snode=specs['secondary_node'],
nics=tmp_nics,
......
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