zones: fix jpictl dump by explicitly omitting Machine.logger and Zone.logger

if they were fields, as in Zones, they would be ignored automatically.
but they aren't

Signed-off-by: Alejandro Mery <amery@jpi.io>
This commit is contained in:
2023-09-08 13:12:56 +00:00
parent 159ccf59ac
commit 32046fc1ec
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -9,8 +9,8 @@ import (
// A Machine is a machine on a Zone
type Machine struct {
zone *Zone
logger
zone *Zone
logger `toml:"-" json:"-" yaml:"-"`
ID int `toml:"id"`
Name string `toml:"-" json:"-" yaml:"-"`
+2 -2
View File
@@ -87,8 +87,8 @@ func FilterMachines(m MachineIterator, cond func(*Machine) bool) (Machines, int)
// Zone represents one zone in a cluster
type Zone struct {
zones *Zones
logger
zones *Zones
logger `toml:"-" json:"-" yaml:"-"`
ID int `toml:"id"`
Name string `toml:"name"`