Browse Source

jpictl: don't append -1 to ring1 addresses on `jpictl list`

Signed-off-by: Alejandro Mery <amery@jpi.io>
pull/58/head
Alejandro Mery 5 months ago
parent
commit
b0356c7ebb
  1. 2
      cmd/jpictl/list.go

2
cmd/jpictl/list.go

@ -108,7 +108,7 @@ func (*inventory) renderRingOneZone(out *tools.LazyBuffer, r *cluster.Region, z
z.ForEachMachine(func(m *cluster.Machine) bool {
addr := m.RingOneAddress()
cidr := netip.PrefixFrom(addr, 32)
_ = out.Printf("%s\t\t%s-%v\n", cidr, m.Name, 1)
_ = out.Printf("%s\t\t%s\n", cidr, m.Name)
return false
})
return nil

Loading…
Cancel
Save