Fix collaboration service name (#1577)

* fix: collaboration service name

* change: do not use app name in service name

* feat: make collaboration service name configurable

* test: fix test config
This commit is contained in:
Michael Barz
2025-09-29 10:06:05 +02:00
committed by GitHub
parent 754ac7a699
commit 4a0cc1004f
8 changed files with 14 additions and 12 deletions
@@ -25,14 +25,14 @@ func Version(cfg *config.Config) *cli.Command {
fmt.Println("")
reg := registry.GetRegistry()
services, err := reg.GetService(cfg.HTTP.Namespace + "." + cfg.Service.Name + "." + cfg.App.Name)
services, err := reg.GetService(cfg.HTTP.Namespace + "." + cfg.Service.Name)
if err != nil {
fmt.Println(fmt.Errorf("could not get %s services from the registry: %v", cfg.Service.Name+"."+cfg.App.Name, err))
fmt.Println(fmt.Errorf("could not get %s services from the registry: %v", cfg.Service.Name, err))
return err
}
if len(services) == 0 {
fmt.Println("No running " + cfg.Service.Name + "." + cfg.App.Name + " service found.")
fmt.Println("No running " + cfg.Service.Name + " service found.")
return nil
}