summaryrefslogtreecommitdiff
path: root/helpers.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-10-26 12:33:13 -0500
committerJeff Carr <[email protected]>2024-10-26 12:33:13 -0500
commita4e6d7a58b90e80f45c0464afcc507635c3a4375 (patch)
tree50f3289ea1e8087845d02b56d2721d4bd9762947 /helpers.go
parentef32a06292873c4e8942cef07837a948ff71fa5a (diff)
start cleaning junk fields from config files
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'helpers.go')
-rw-r--r--helpers.go6
1 files changed, 6 insertions, 0 deletions
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
+ }
+}