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

gnt-instance: support no_PARAMETER value

Since parameters get set to False if a no_ is prefixed don't try to
interpret those boolean values, and pass them unchanged.

Reviewed-by: iustinp
parent 7a735d6a
......@@ -1182,6 +1182,7 @@ def SetInstanceParams(opts, args):
return 1
for param in opts.beparams:
if isinstance(opts.beparams[param], basestring):
if opts.beparams[param].lower() == "default":
opts.beparams[param] = constants.VALUE_DEFAULT
elif opts.beparams[param].lower() == "none":
......@@ -1191,6 +1192,7 @@ def SetInstanceParams(opts, args):
for param in opts.hypervisor:
if isinstance(opts.hypervisor[param], basestring):
if opts.hypervisor[param].lower() == "default":
opts.hypervisor[param] = constants.VALUE_DEFAULT
elif opts.hypervisor[param].lower() == "none":
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