diff --git a/db/queries/query.txt b/db/queries/query.txt deleted file mode 100644 index b3eff66..0000000 --- a/db/queries/query.txt +++ /dev/null @@ -1,25 +0,0 @@ --- name: GetAuthor :one -SELECT * FROM authors -WHERE id = ? LIMIT 1; - --- name: ListAuthors :many -SELECT * FROM authors -ORDER BY name; - --- name: CreateAuthor :one -INSERT INTO authors ( - name, bio -) VALUES ( - ?, ? -) -RETURNING *; - --- name: UpdateAuthor :exec -UPDATE authors -SET name = ?, -bio = ? -WHERE id = ?; - --- name: DeleteAuthor :exec -DELETE FROM authors -WHERE id = ?; diff --git a/server/handler/vmModifyEvent.go b/server/handler/vmModifyEvent.go index e1e9d52..022916b 100644 --- a/server/handler/vmModifyEvent.go +++ b/server/handler/vmModifyEvent.go @@ -104,6 +104,15 @@ func (h *Handler) VmModifyEvent(w http.ResponseWriter, r *http.Request) { params.NewRam = sql.NullInt64{Int64: i, Valid: i > 0} params.UpdateType = "reconfigure" } + case "config.managedBy": + // This changes when a VM becomes a placeholder or vice versa + + // map[newValue:(extensionKey = \"com.vmware.vcDr\", type = \"placeholderVm\") type:config.managedBy] + // map[newValue:\"testVm\" type:config.managedBy.type] + // [map[newValue:\"placeholderVm\" type:config.managedBy.type] + // map[newValue: type:config.managedBy] + + // TODO - track when this happens, maybe need a new database column? } // Check if a disk was added (or maybe removed?)