Revision dfcebee3

b/src/Ganeti/Config.hs
123 123
-- | Computes the role of a node.
124 124
getNodeRole :: ConfigData -> Node -> NodeRole
125 125
getNodeRole cfg node
126
  | nodeName node == clusterMasterNode (configCluster cfg) = NRMaster
126
  | nodeUuid node == clusterMasterNode (configCluster cfg) = NRMaster
127 127
  | nodeMasterCandidate node = NRCandidate
128 128
  | nodeDrained node = NRDrained
129 129
  | nodeOffline node = NROffline

Also available in: Unified diff