Michele Santuari

fix mastership

Change-Id: I1f82bfed7ba98df492326c9c4a7be0764b3a6488
......@@ -444,7 +444,7 @@ public class MastershipManager
}
// Create buckets reflecting current ownership.
for (NodeId nodeId : masterSet) {
if (clusterService.getState(nodeId) == ACTIVE) {
if (clusterService.getState(nodeId).isActive()) {
ControllerNode controllerNode = clusterService.getNode(nodeId);
Set<DeviceId> devicesOf = new HashSet<>(allControllerDevices.get(controllerNode));
regionalControllerDevices.put(controllerNode, devicesOf);
......