From 6a298590becd390022ba4f22e80f55dc3687e2c0 Mon Sep 17 00:00:00 2001 From: Alan Bernstein Date: Fri, 9 Oct 2020 09:27:48 -0500 Subject: [PATCH] Set omitempty for disk capacity json --- api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.go b/api.go index f0981bc2e..180988a7e 100644 --- a/api.go +++ b/api.go @@ -801,7 +801,7 @@ type NodeUsage struct { // DiskUsage represents the storage space used on disk by one node. type DiskUsage struct { - Capacity uint64 `json:"capacity"` + Capacity uint64 `json:"capacity,omitempty"` TotalUse int64 `json:"totalInUse"` Indexes map[string]int64 `json:"indexes"` }