Commit 27ba7eab authored by Guido Trotter's avatar Guido Trotter
Browse files

BatchCreate: set a default for force_variant



Currently if the json file doesn't contain a "force_variant" parameter
BatchCreate stracktraces. We add a default so passing it explicitely is
not needed.
Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
Reviewed-by: default avatarBalazs Lecz <leczb@google.com>
parent 1afea34a
...@@ -387,6 +387,7 @@ def BatchCreate(opts, args): ...@@ -387,6 +387,7 @@ def BatchCreate(opts, args):
"hypervisor": None, "hypervisor": None,
"hvparams": {}, "hvparams": {},
"file_storage_dir": None, "file_storage_dir": None,
"force_variant": False,
"file_driver": 'loop'} "file_driver": 'loop'}
def _PopulateWithDefaults(spec): def _PopulateWithDefaults(spec):
......
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