diff options
author | Valerij Fredriksen <valerij92@gmail.com> | 2021-03-04 15:40:40 +0100 |
---|---|---|
committer | Valerij Fredriksen <valerij92@gmail.com> | 2021-03-04 15:40:40 +0100 |
commit | 73593b9c136acfc25fe97c2802ea0e7adaf9f851 (patch) | |
tree | 2a1bb2e46e5214670e0fc3656f589d60d7102f85 /node-repository | |
parent | b21daf9060e5f36c4b4aeeef004fd939218912fc (diff) |
Call more general fail method instead of generic move
Diffstat (limited to 'node-repository')
-rw-r--r-- | node-repository/src/main/java/com/yahoo/vespa/hosted/provision/node/Nodes.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/node/Nodes.java b/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/node/Nodes.java index 05e192481e6..bb50d6fcc6f 100644 --- a/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/node/Nodes.java +++ b/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/node/Nodes.java @@ -287,7 +287,7 @@ public class Nodes { * @throws NoSuchNodeException if the node is not found */ public Node fail(String hostname, Agent agent, String reason) { - return move(hostname, true, Node.State.failed, agent, Optional.of(reason)); + return fail(hostname, true, agent, reason); } public Node fail(String hostname, boolean keepAllocation, Agent agent, String reason) { |