add vm cleanup endpoint
Some checks are pending
CI / Test (push) Waiting to run
CI / End-to-End (push) Waiting to run
CI / Publish Docker (push) Blocked by required conditions
CI / Lint (push) Waiting to run
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-09-26 13:29:02 +10:00
parent f712c7254f
commit 00d474b937
5 changed files with 114 additions and 1 deletions

View File

@@ -39,7 +39,7 @@ func (h *Handler) VmImport(w http.ResponseWriter, r *http.Request) {
ctx := context.Background()
// TODO - query Inventory table for this VM before adding it
// Query Inventory table for this VM before adding it
h.Logger.Debug("Checking inventory table for VM record")
invParams := queries.GetInventoryVmIdParams{
VmId: sql.NullString{String: inData.VmId, Valid: inData.VmId != ""},