diff options
| author | Jeff Carr <[email protected]> | 2024-10-26 12:33:13 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-10-26 12:33:13 -0500 |
| commit | a4e6d7a58b90e80f45c0464afcc507635c3a4375 (patch) | |
| tree | 50f3289ea1e8087845d02b56d2721d4bd9762947 /helpers.go | |
| parent | ef32a06292873c4e8942cef07837a948ff71fa5a (diff) | |
start cleaning junk fields from config files
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'helpers.go')
| -rw-r--r-- | helpers.go | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -118,3 +118,9 @@ func HumanFormatBytes(b int64) string { tb := int(b / (1024 * 1024 * 1024 * 1024)) return fmt.Sprintf("%d TB", tb) } + +func (c *Cluster) BlankFields() { + for _, d := range c.Droplets { + d.CurrentState = 0 + } +} |
