From a4e6d7a58b90e80f45c0464afcc507635c3a4375 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 26 Oct 2024 12:33:13 -0500 Subject: start cleaning junk fields from config files Signed-off-by: Jeff Carr --- helpers.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'helpers.go') diff --git a/helpers.go b/helpers.go index d55f64a..25486f1 100644 --- a/helpers.go +++ b/helpers.go @@ -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 + } +} -- cgit v1.2.3