From 8667675279a63b1bb5f8d84c604537bae42be919 Mon Sep 17 00:00:00 2001 From: secwall Date: Mon, 22 Jan 2024 12:58:51 +0100 Subject: [PATCH] Drop resetup status from dcs on host delete (#70) --- internal/app/cli.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/app/cli.go b/internal/app/cli.go index 3859e7ba..6b107ffe 100644 --- a/internal/app/cli.go +++ b/internal/app/cli.go @@ -689,6 +689,10 @@ func (app *App) CliHostRemove(host string) int { if err != nil && err != dcs.ErrNotFound { return 1 } + err = app.dcs.Delete(dcs.JoinPath(pathResetupStatus, host)) + if err != nil && err != dcs.ErrNotFound { + return 1 + } fmt.Println("host has been removed") return 0 }