commit | e83cce7dc445e1bac2abad102258e9560380e22b | [log] [tgz] |
---|---|---|
author | Yuta HIGUCHI <y-higuchi@onlab.us> | Mon Nov 24 22:54:24 2014 -0800 |
committer | Yuta HIGUCHI <y-higuchi@onlab.us> | Mon Nov 24 23:06:40 2014 -0800 |
tree | c177a835b21c60b3bfa60cc210e9af49b431e1ec | |
parent | e367fb97188d3f9a62c80b5c673e21e29e9cf6ff [diff] |
BalanceMastersCommand: Fix type mismatch Change-Id: If6bbe8d16d70b937250e243e7ac8617b0e971543
diff --git a/cli/src/main/java/org/onlab/onos/cli/BalanceMastersCommand.java b/cli/src/main/java/org/onlab/onos/cli/BalanceMastersCommand.java index 1f4c17d..a3f3c23 100644 --- a/cli/src/main/java/org/onlab/onos/cli/BalanceMastersCommand.java +++ b/cli/src/main/java/org/onlab/onos/cli/BalanceMastersCommand.java
@@ -109,7 +109,7 @@ DeviceId deviceId = it.next(); // Check that the transfer can happen for the current element. - if (mastershipService.getNodesFor(deviceId).backups().contains(smallest)) { + if (mastershipService.getNodesFor(deviceId).backups().contains(smallest.id())) { print("Setting %s as the new master for %s", smallest.id(), deviceId); adminService.setRole(smallest.id(), deviceId, MastershipRole.MASTER); i++;