Update internal reboot/restart generations regardless of state
@@ -438,8 +438,6 @@ public class NodeAgentImpl implements NodeAgent {
void doConverge(NodeAgentContext context) {
NodeSpec node = context.node();
Optional<Container> container = getContainer(context);
- if (!node.equals(lastNode)) {
- logChangesToNodeSpec(context, lastNode, node);
// Current reboot generation uninitialized or incremented from outside to cancel reboot
if (currentRebootGeneration < node.currentRebootGeneration())
@@ -451,6 +449,8 @@ public class NodeAgentImpl implements NodeAgent {
currentRestartGeneration.map(current -> current < node.currentRestartGeneration().get()).orElse(false))
currentRestartGeneration = node.currentRestartGeneration();
+ if (!node.equals(lastNode)) {
+ logChangesToNodeSpec(context, lastNode, node);
lastNode = node;
}
