mirror of
https://github.com/cirruslabs/orchard.git
synced 2026-10-17 20:25:50 +02:00
Allow creating VMs with implicit CPU and memory (#243)
* Allow creating VMs with implicit CPU and memory * Clarify why cpu/memory can be 0 a bit better * Controller(API): don't forget to update DefaultCPU and DefaultMemory * Add an integration test for implicit CPU and memory
This commit is contained in:
@@ -98,6 +98,8 @@ func (controller *Controller) createWorker(ctx *gin.Context) responder.Responder
|
||||
|
||||
dbWorker.LastSeen = worker.LastSeen
|
||||
dbWorker.Resources = worker.Resources
|
||||
dbWorker.DefaultCPU = worker.DefaultCPU
|
||||
dbWorker.DefaultMemory = worker.DefaultMemory
|
||||
|
||||
if err := txn.SetWorker(*dbWorker); err != nil {
|
||||
return responder.Error(err)
|
||||
|
||||
Reference in New Issue
Block a user