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

Merged
amery merged 1 commits from pr-amery-dump into main 10 months ago
  1. 2
      pkg/zones/machine.go
  2. 2
      pkg/zones/zones.go

2
pkg/zones/machine.go

@ -10,7 +10,7 @@ import (
// A Machine is a machine on a Zone
type Machine struct {
zone *Zone
Review

this looks like fmt should have caught it, but anyways what are we? Python? since when whitespace counts?

this looks like `fmt` should have caught it, but anyways what are we? Python? since when whitespace counts?
logger
logger `toml:"-" json:"-" yaml:"-"`
ID int `toml:"id"`
Name string `toml:"-" json:"-" yaml:"-"`

2
pkg/zones/zones.go

@ -88,7 +88,7 @@ func FilterMachines(m MachineIterator, cond func(*Machine) bool) (Machines, int)
// Zone represents one zone in a cluster
type Zone struct {
zones *Zones
logger
logger `toml:"-" json:"-" yaml:"-"`
ID int `toml:"id"`
Name string `toml:"name"`

Loading…
Cancel
Save