diff --git a/pkg/zones/machine.go b/pkg/zones/machine.go index dd18436..05aad1e 100644 --- a/pkg/zones/machine.go +++ b/pkg/zones/machine.go @@ -5,16 +5,20 @@ import ( "strings" ) +// revive:disable:line-length-limit + // A Machine is a machine on a Zone type Machine struct { zone *Zone ID int - Name string `toml:"name" yaml:"-"` + Name string `toml:"name" json:"-" yaml:"-"` - PublicAddresses []netip.Addr `toml:"public,omitempty" yaml:"public,omitempty"` - Rings []*RingInfo `toml:"rings,omitempty" yaml:"rings,omitempty"` + PublicAddresses []netip.Addr `toml:"public,omitempty" json:"public,omitempty" yaml:"public,omitempty"` + Rings []*RingInfo `toml:"rings,omitempty" json:"rings,omitempty" yaml:"rings,omitempty"` } +// revive:enable:line-length-limit + func (m *Machine) String() string { return m.Name }