diff options
| author | Jeff Carr <[email protected]> | 2024-10-22 17:12:32 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-10-22 17:12:32 -0500 |
| commit | c0c2533aaa33fc6e2fa1247c9a08de8b911475f3 (patch) | |
| tree | 856492f0cedde91f3e6878fa1f14631d10c37f2d /helpers.go | |
| parent | 3a224054680758aa1871706a98ccbcd94087b6e9 (diff) | |
more human readable json file tests
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'helpers.go')
| -rw-r--r-- | helpers.go | 11 |
1 files changed, 3 insertions, 8 deletions
@@ -103,18 +103,13 @@ func (c *Cluster) AddDroplet(hostname string, cpus int, mem int) *Droplet { d.Cpus = 1 } d.Memory = 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") + if d.Humantest == nil { var newInfo StorageInfo newInfo = StorageInfo{Capacity: 64} - d.Testsi = &newInfo + d.Humantest = &newInfo } else { - d.Testsi.Capacity = SetGB(mem * 32) + d.Humantest.Capacity = SetGB(mem * 32) } - // d.Testsi = StorageInfo{Capacity: 64} c.Droplets = append(c.Droplets, d) return d } |
