cluster: migrate to using pkg/rings for Addresses [WIP]
Signed-off-by: Alejandro Mery <amery@jpi.io>
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
||||
|
||||
"darvaza.org/slog"
|
||||
"git.jpi.io/amery/jpictl/pkg/ceph"
|
||||
"git.jpi.io/amery/jpictl/pkg/rings"
|
||||
)
|
||||
|
||||
type cephScanTODO struct {
|
||||
@@ -14,7 +15,7 @@ type cephScanTODO struct {
|
||||
|
||||
func (todo *cephScanTODO) checkMachine(p *Machine) bool {
|
||||
// on ceph all addresses are ring1
|
||||
ring1, _ := RingOneAddress(p.Zone(), p.ID)
|
||||
ring1, _ := rings.RingOneAddress(p.Region(), p.Zone(), p.ID)
|
||||
addr := ring1.String()
|
||||
|
||||
if _, found := todo.names[p.Name]; found {
|
||||
|
||||
Reference in New Issue
Block a user