zones: annotate Machine for YAML encoding
Signed-off-by: Alejandro Mery <amery@jpi.io>
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user