diff --git a/pkg/zones/machine.go b/pkg/zones/machine.go index 05aad1e..4f0c736 100644 --- a/pkg/zones/machine.go +++ b/pkg/zones/machine.go @@ -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"` diff --git a/pkg/zones/zones.go b/pkg/zones/zones.go index 92489c4..8fd5af1 100644 --- a/pkg/zones/zones.go +++ b/pkg/zones/zones.go @@ -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"` }