zones: change toml tags to match yaml and json output
Signed-off-by: Alejandro Mery <amery@jpi.io>
This commit is contained in:
@@ -10,8 +10,8 @@ import (
|
||||
// A Machine is a machine on a Zone
|
||||
type Machine struct {
|
||||
zone *Zone
|
||||
ID int
|
||||
Name string `toml:"name" json:"-" yaml:"-"`
|
||||
ID int `toml:"id"`
|
||||
Name string `toml:"-" json:"-" yaml:"-"`
|
||||
|
||||
PublicAddresses []netip.Addr `toml:"public,omitempty" json:"public,omitempty" yaml:"public,omitempty"`
|
||||
Rings []*RingInfo `toml:"rings,omitempty" json:"rings,omitempty" yaml:"rings,omitempty"`
|
||||
|
||||
+2
-2
@@ -14,8 +14,8 @@ import (
|
||||
type Zone struct {
|
||||
zones *Zones
|
||||
|
||||
ID int
|
||||
Name string
|
||||
ID int `toml:"id"`
|
||||
Name string `toml:"name"`
|
||||
|
||||
Machines []*Machine `toml:"machines"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user