Fix checks in LUSetNodeParms for the master node
authorIustin Pop <iustin@google.com>
Fri, 14 Aug 2009 09:07:06 +0000 (11:07 +0200)
committerIustin Pop <iustin@google.com>
Fri, 14 Aug 2009 09:26:46 +0000 (11:26 +0200)
commit97c61d46ffa3a56afbbfc60ea92128dc456f4592
treeaa62b20f87b90562dbc6e376092d90f51a33a4ba
parent82cd7760226f186a16cc3cb84506cc1b81f2f559
Fix checks in LUSetNodeParms for the master node

There was a check already in the LU for the master node, however is
wasn't correct. This patch disallows any role changes on the master node
via LUSetNodeParms (and as this LU can't change anything else, it
practically prevents it from touching the master node).

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