refactor: event ID generation for images, machines, and volumes to align with plan formatting

This commit is contained in:
Pasha Sviderski
2026-04-08 19:16:42 +10:00
parent 3e30a59d4c
commit fe813302b7
4 changed files with 24 additions and 4 deletions
+2 -1
View File
@@ -13,6 +13,7 @@ import (
"github.com/cenkalti/backoff/v4"
"github.com/docker/compose/v2/pkg/progress"
cliprogress "github.com/psviderski/uncloud/internal/cli/progress"
"github.com/psviderski/uncloud/internal/machine/api/pb"
"github.com/psviderski/uncloud/internal/machine/caddyconfig"
"github.com/psviderski/uncloud/pkg/api"
@@ -148,7 +149,7 @@ func verifyCaddyReachable(ctx context.Context, m *pb.MachineInfo) error {
publicIP, _ := m.PublicIp.ToAddr()
pw := progress.ContextWriter(ctx)
eventID := fmt.Sprintf("Machine %s (%s)", m.Name, publicIP)
eventID := cliprogress.MachineEventID(m.Name, publicIP.String())
pw.Event(progress.NewEvent(eventID, progress.Working, "Querying"))
verifyURL := getVerifyURL(publicIP)