From 67f9c148c86efa0691805b8a4fa22b29bb66110f Mon Sep 17 00:00:00 2001 From: Ben Pearce Date: Fri, 31 May 2024 15:30:58 +1000 Subject: [PATCH] fix: wrong url for new infrastucture (#351) --- pkg/machinescommon/web.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/machinescommon/web.go b/pkg/machinescommon/web.go index 28a0f41f..636e6796 100644 --- a/pkg/machinescommon/web.go +++ b/pkg/machinescommon/web.go @@ -31,17 +31,17 @@ func RegisterWebFlag(cmd *cobra.Command, flags *WebFlags) { } func DoWebForTargets(target *machines.DeploymentTarget, dependencies *cmd.Dependencies, flags *WebFlags, description string) { - url := fmt.Sprintf("%s/app#/%s/infrastructure/machines/%s", dependencies.Host, dependencies.Space.GetID(), target.GetID()) + url := fmt.Sprintf("%s/app#/%s/infrastructure/machines/%s/settings", dependencies.Host, dependencies.Space.GetID(), target.GetID()) doWeb(url, description, dependencies.Out, flags) } func DoWebForWorkers(worker *machines.Worker, dependencies *cmd.Dependencies, flags *WebFlags, description string) { - url := fmt.Sprintf("%s/app#/%s/infrastructure/workers/%s", dependencies.Host, dependencies.Space.GetID(), worker.GetID()) + url := fmt.Sprintf("%s/app#/%s/infrastructure/workers/%s/settings", dependencies.Host, dependencies.Space.GetID(), worker.GetID()) doWeb(url, description, dependencies.Out, flags) } func DoWebForWorkerPools(workerPool workerpools.IWorkerPool, dependencies *cmd.Dependencies, flags *WebFlags) { - url := fmt.Sprintf("%s/app#/%s/infrastructure/workerpools/%s", dependencies.Host, dependencies.Space.GetID(), workerPool.GetID()) + url := fmt.Sprintf("%s/app#/%s/infrastructure/workerpools/%s/settings", dependencies.Host, dependencies.Space.GetID(), workerPool.GetID()) doWeb(url, "Worker Pool", dependencies.Out, flags) }