fix: force delete LXC and purge; test log messages
This commit is contained in:
2
lxc.go
2
lxc.go
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user