Clear the whole account an adopted node gave when it converges (hq ADR 0100)

This commit is contained in:
2026-09-22 19:45:35 +02:00
parent 87ecc9326e
commit 2cf8739a84
2 changed files with 28 additions and 1 deletions
+1 -1
View File
@@ -118,7 +118,7 @@ func (i *Inventory) Converge(ctx context.Context, nodeName string) ([]string, er
}
if _, err := tx.Exec(ctx,
`update node set adopted = false, adopted_since = null, converged_at = now(),
held = null, reachable = null
held = null, reachable = null, firewall = null, adoption_reported = null
where id = $1`,
node.ID); err != nil {
return nil, err