From b6f5594fe6b92b5b3a76e22ba3823c9ac8e00cd2 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 31 Oct 2024 22:14:52 -0500 Subject: [PATCH] add droplet defaults to start state = off Signed-off-by: Jeff Carr --- add.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/add.go b/add.go index c650803..6813aa8 100644 --- a/add.go +++ b/add.go @@ -101,6 +101,7 @@ func (c *NewCluster) AddDropletSimple(uuid string, hostname string, cpus int, me d.Cpus = 1 } d.Memory = SetGB(mem * 32) + d.StartState = DropletState_OFF c.AddDroplet(d) return d } @@ -113,6 +114,7 @@ func (c *NewCluster) AddDropletLocal(name string, hypername string) *Droplet { d.LocalOnly = hypername d.Current = new(Current) d.Current.Hypervisor = hypername + d.StartState = DropletState_OFF d.Current.State = DropletState_OFF c.AddDroplet(d)