From 27ba7eab208af2f4255456b339e2266ed70b6a71 Mon Sep 17 00:00:00 2001
From: Guido Trotter <ultrotter@google.com>
Date: Tue, 29 Jun 2010 10:54:17 +0100
Subject: [PATCH] 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: Guido Trotter <ultrotter@google.com>
Reviewed-by: Balazs Lecz <leczb@google.com>
---
 scripts/gnt-instance | 1 +
 1 file changed, 1 insertion(+)

diff --git a/scripts/gnt-instance b/scripts/gnt-instance
index 710fb4dab..8ee48c8b1 100755
--- a/scripts/gnt-instance
+++ b/scripts/gnt-instance
@@ -387,6 +387,7 @@ def BatchCreate(opts, args):
                     "hypervisor": None,
                     "hvparams": {},
                     "file_storage_dir": None,
+                    "force_variant": False,
                     "file_driver": 'loop'}
 
   def _PopulateWithDefaults(spec):
-- 
GitLab