Skip to content

Commit

Permalink
Merge pull request #4975 from oasisprotocol/kostko/fix/control-status…
Browse files Browse the repository at this point in the history
…-cleanup

go/control: Omit empty runtimes and pending upgrades
  • Loading branch information
kostko authored Oct 11, 2022
2 parents ba9802c + 5aa86d9 commit 5985dc5
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 5985dc5

Please sign in to comment.