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
|
// A Machine is a machine on a Zone
|
||||||
type Machine struct {
|
type Machine struct {
|
||||||
zone *Zone
|
zone *Zone
|
||||||
ID int
|
ID int `toml:"id"`
|
||||||
Name string `toml:"name" json:"-" yaml:"-"`
|
Name string `toml:"-" json:"-" yaml:"-"`
|
||||||
|
|
||||||
PublicAddresses []netip.Addr `toml:"public,omitempty" json:"public,omitempty" yaml:"public,omitempty"`
|
PublicAddresses []netip.Addr `toml:"public,omitempty" json:"public,omitempty" yaml:"public,omitempty"`
|
||||||
Rings []*RingInfo `toml:"rings,omitempty" json:"rings,omitempty" yaml:"rings,omitempty"`
|
Rings []*RingInfo `toml:"rings,omitempty" json:"rings,omitempty" yaml:"rings,omitempty"`
|
||||||
|
|||||||
+2
-2
@@ -14,8 +14,8 @@ import (
|
|||||||
type Zone struct {
|
type Zone struct {
|
||||||
zones *Zones
|
zones *Zones
|
||||||
|
|
||||||
ID int
|
ID int `toml:"id"`
|
||||||
Name string
|
Name string `toml:"name"`
|
||||||
|
|
||||||
Machines []*Machine `toml:"machines"`
|
Machines []*Machine `toml:"machines"`
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user