Utility function to set the master node in a node list
authorKlaus Aehlig <aehlig@google.com>
Wed, 17 Apr 2013 09:42:28 +0000 (11:42 +0200)
committerKlaus Aehlig <aehlig@google.com>
Fri, 19 Apr 2013 11:54:14 +0000 (13:54 +0200)
commit09ab9fb23019c1a71f16004956d6b3f135a9282b
tree9d03b68e85e0b4c71dc047b84f180c8309ab95d3
parent5b658b83d7cac383e5668ad85d4ab296fe59396e
Utility function to set the master node in a node list

The information about which node is the master node is a cluster-wide
setting, in most formats provided independently of the node information.
Most backends therefore have to set the isMaster bit indepently in the
obtained node list. This patch provides a utility function for this.

Signed-off-by: Klaus Aehlig <aehlig@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
src/Ganeti/HTools/Loader.hs