Skip to content

Commit

Permalink
go/control: Omit empty runtimes and pending upgrades
Browse files Browse the repository at this point in the history
  • Loading branch information
kostko committed Oct 11, 2022
1 parent ba9802c commit 5aa86d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Empty file added .changelog/4975.trivial.md
Empty file.
4 changes: 2 additions & 2 deletions go/control/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ type Status struct {
Consensus consensus.Status `json:"consensus"`

// Runtimes is the status overview for each runtime supported by the node.
Runtimes map[common.Namespace]RuntimeStatus `json:"runtimes"`
Runtimes map[common.Namespace]RuntimeStatus `json:"runtimes,omitempty"`

// Registration is the node's registration status.
Registration RegistrationStatus `json:"registration"`
Expand All @@ -79,7 +79,7 @@ type Status struct {
Keymanager *keymanagerWorker.Status `json:"keymanager,omitempty"`

// PendingUpgrades are the node's pending upgrades.
PendingUpgrades []*upgrade.PendingUpgrade `json:"pending_upgrades"`
PendingUpgrades []*upgrade.PendingUpgrade `json:"pending_upgrades,omitempty"`
}

// DebugStatus is the current node debug status, listing the various node
Expand Down

0 comments on commit 5aa86d9

Please sign in to comment.