diff options
| author | Jeff Carr <[email protected]> | 2024-10-31 22:14:52 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-10-31 22:14:52 -0500 |
| commit | b6f5594fe6b92b5b3a76e22ba3823c9ac8e00cd2 (patch) | |
| tree | cf2f1a9f7648d5193381e751f1e6b938a901b025 | |
| parent | 2b77b8a89d33576fb8cc0d55f36beddffca05bad (diff) | |
add droplet defaults to start state = off
Signed-off-by: Jeff Carr <[email protected]>
| -rw-r--r-- | add.go | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) |
