fix: force delete LXC and purge; test log messages
Some checks failed
CI / build (push) Failing after 4m2s
CI / lint (push) Failing after 3m23s
CI / pkl-validate (push) Successful in 11s
CI / integration-tests (push) Has been skipped
CI / conformance-tests (latest) (push) Has been skipped

This commit is contained in:
2026-02-14 20:30:10 +01:00
parent 959257eac8
commit 7f84ceaafd
2 changed files with 4 additions and 4 deletions

2
lxc.go
View File

@@ -319,7 +319,7 @@ func (p *Plugin) DeleteLXC(ctx context.Context, req *resource.DeleteRequest) (*r
}, err
}
_, err = authenticatedRequest(http.MethodDelete, config.URL+"/api2/json/nodes/"+config.NODE+"/lxc/"+req.NativeID, createAuthorizationString(username, token), nil)
_, err = authenticatedRequest(http.MethodDelete, config.URL+"/api2/json/nodes/"+config.NODE+"/lxc/"+req.NativeID+"?force=1&purge=1", createAuthorizationString(username, token), nil)
if err != nil {
slog.Error(err.Error())