summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-10-31 22:14:52 -0500
committerJeff Carr <[email protected]>2024-10-31 22:14:52 -0500
commitb6f5594fe6b92b5b3a76e22ba3823c9ac8e00cd2 (patch)
treecf2f1a9f7648d5193381e751f1e6b938a901b025
parent2b77b8a89d33576fb8cc0d55f36beddffca05bad (diff)
add droplet defaults to start state = off
Signed-off-by: Jeff Carr <[email protected]>
-rw-r--r--add.go2
1 files changed, 2 insertions, 0 deletions
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)