LUSetClusterParms: fix validation of beparams
authorIustin Pop <iustin@google.com>
Wed, 17 Nov 2010 10:52:04 +0000 (11:52 +0100)
committerIustin Pop <iustin@google.com>
Wed, 17 Nov 2010 12:14:08 +0000 (13:14 +0100)
commit52b783c2aa397b487189ffba3531fcedf5312a16
tree62c7c743015be1d1e6bda161a812d7bb6216e925
parent2ba14c2f517232eaa7e23252dc4cbbbab19ab582
LUSetClusterParms: fix validation of beparams

Since the contents of the dict is validated via the ForceDictType, we can
simply require that it is a dict here. The previous check was wrong, as it was
copied from the HV checks (which also doesn't verify the leaf dict type).

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
lib/cmdlib.py