zones: annotate Machine for YAML encoding

Signed-off-by: Alejandro Mery <amery@jpi.io>
This commit is contained in:
2023-08-25 16:25:32 +00:00
parent 4514b44211
commit 080021b427
+3 -3
View File
@@ -9,10 +9,10 @@ import (
type Machine struct {
zone *Zone
ID int
Name string `toml:"name"`
Name string `toml:"name" yaml:"-"`
PublicAddresses []netip.Addr `toml:"public,omitempty"`
Rings []*RingInfo `toml:"rings,omitempty"`
PublicAddresses []netip.Addr `toml:"public,omitempty" yaml:"public,omitempty"`
Rings []*RingInfo `toml:"rings,omitempty" yaml:"rings,omitempty"`
}
func (m *Machine) String() string {