gnt-group add: Fix diskparam fill
authorRené Nussbaumer <rn@google.com>
Mon, 14 May 2012 08:32:09 +0000 (10:32 +0200)
committerRené Nussbaumer <rn@google.com>
Mon, 14 May 2012 11:51:33 +0000 (13:51 +0200)
commit7228ca91822334653d3b0264d80d1307a93a1515
tree9fe7a2da57ef73a5692c112f20de82d2ff09cae9
parentb3230b3282ef6dcbc05ab341c219f700291fe003
gnt-group add: Fix diskparam fill

This was a pretty non-obvious bug. A cluster looks sane after
gnt-cluster init, however on a daemon restart the diskparameters had the
default filled in. The same applies to gnt-group add. This is due to the
nature that UpgradeConfig() from NodeGroups did just populate them with
defaults if something was set on it.

Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
lib/cmdlib.py
lib/objects.py