summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@gmail.com>2021-02-08 12:35:21 +0100
committerJon Bratseth <bratseth@gmail.com>2021-02-08 12:35:21 +0100
commit72260ae6945ffb112022c65c8653d81629bd1504 (patch)
treef91b73d0ab01a061a3370dfd1bb12732882ab0fe
parentb2a181bdad617a3533ba2f4de2529fe107f830ad (diff)
Flip comparison
-rw-r--r--node-repository/src/main/java/com/yahoo/vespa/hosted/provision/NodeRepository.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/NodeRepository.java b/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/NodeRepository.java
index f9a20fb2325..2642983dd2a 100644
--- a/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/NodeRepository.java
+++ b/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/NodeRepository.java
@@ -225,7 +225,7 @@ public class NodeRepository extends AbstractComponent {
* @return the list of node ACLs
*/
public List<NodeAcl> getChildAcls(Node host) {
- if ( host.type().isHost()) throw new IllegalArgumentException("Only hosts have children");
+ if ( ! host.type().isHost()) throw new IllegalArgumentException("Only hosts have children");
NodeList allNodes = list();
return list().childrenOf(host).asList().stream()
.map(childNode -> childNode.acl(allNodes, loadBalancers))