diff options
| author | Jeff Carr <[email protected]> | 2024-10-22 16:42:14 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-10-22 16:42:14 -0500 |
| commit | 3a224054680758aa1871706a98ccbcd94087b6e9 (patch) | |
| tree | 122e3ec9c14f240409a820337795d0fbc6c10107 /helpers.go | |
| parent | f2040886198b8f4a25ce1a9f65585097b299f9fa (diff) | |
compiles
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'helpers.go')
| -rw-r--r-- | helpers.go | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -103,7 +103,17 @@ func (c *Cluster) AddDroplet(hostname string, cpus int, mem int) *Droplet { d.Cpus = 1 } d.Memory = SetGB(mem * 32) - d.Testsi.Capacity = SetGB(mem * 32) + if d.Testsi == nil { + fmt.Println("Testsi is NIL") + fmt.Println("Testsi is NIL") + fmt.Println("Testsi is NIL") + fmt.Println("Testsi is NIL") + var newInfo StorageInfo + newInfo = StorageInfo{Capacity: 64} + d.Testsi = &newInfo + } else { + d.Testsi.Capacity = SetGB(mem * 32) + } // d.Testsi = StorageInfo{Capacity: 64} c.Droplets = append(c.Droplets, d) return d |
