Commit 12649e35 authored by Guido Trotter's avatar Guido Trotter
Browse files

LUSetInstanceParams: use the correct hvparams

In LUSetInstanceParam we used to save the dict without defaults for the
instance params as hv_inst, but to use the populated one for the
instance (hv_new). Fixing this leads to instances without all the
parameters set.

Reviewed-by: iustinp
parent 5c418644
......@@ -5894,7 +5894,7 @@ class LUSetInstanceParams(LogicalUnit):
# hvparams changes
if self.op.hvparams:
instance.hvparams = self.hv_new
instance.hvparams = self.hv_inst
for key, val in self.op.hvparams.iteritems():
result.append(("hv/%s" % key, val))
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