diff options
author | Håkon Hallingstad <hakon@verizonmedia.com> | 2019-02-17 23:30:41 +0100 |
---|---|---|
committer | Håkon Hallingstad <hakon@verizonmedia.com> | 2019-02-17 23:30:41 +0100 |
commit | f02ed1b61148b3f331048ebbd1174534851a8911 (patch) | |
tree | 66830c1b91563be84f89189a0e4f2c30e5528d46 /node-repository | |
parent | 62b9c56d4a16b970b54c3ce2a78f99fc937dd56f (diff) |
reports and modelName wrongly removed
Diffstat (limited to 'node-repository')
-rw-r--r-- | node-repository/src/main/java/com/yahoo/vespa/hosted/provision/Node.java | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/Node.java b/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/Node.java index 8d127f6c547..668795f362b 100644 --- a/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/Node.java +++ b/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/Node.java @@ -59,12 +59,6 @@ public final class Node { Optional.empty(), History.empty(), type, new Reports(), Optional.empty()); } - /** Do not use. Construct nodes by calling {@link NodeRepository#createNode} */ - private Node(String id, Set<String> ipAddresses, Set<String> ipAddressPool, String hostname, Optional<String> parentHostname, - Flavor flavor, Status status, State state, Allocation allocation, History history, NodeType type) { - this(id, ipAddresses, ipAddressPool, hostname, parentHostname, flavor, status, state, Optional.of(allocation), history, type, new Reports(), Optional.empty()); - } - /** Creates a node. See also the {@code create} helper methods. */ public Node(String id, Set<String> ipAddresses, Set<String> ipAddressPool, String hostname, Optional<String> parentHostname, Flavor flavor, Status status, State state, Optional<Allocation> allocation, History history, NodeType type, @@ -247,7 +241,8 @@ public final class Node { * Do not use this to allocate a node. */ public Node with(Allocation allocation) { - return new Node(id, ipAddresses, ipAddressPool.asSet(), hostname, parentHostname, flavor, status, state, allocation, history, type); + return new Node(id, ipAddresses, ipAddressPool.asSet(), hostname, parentHostname, flavor, status, state, + Optional.of(allocation), history, type, reports, modelName); } /** Returns a new Node without an allocation. */ |