Unistore/datamigration: Take namespace from command line flag (#106724)

Signed-off-by: Maicon Costa <maiconscosta@gmail.com>
This commit is contained in:
maicon
2025-06-15 19:45:42 +00:00
committed by GitHub
parent 0034456e00
commit fcb369e9a3
2 changed files with 8 additions and 1 deletions
@@ -32,7 +32,9 @@ import (
// ToUnifiedStorage converts dashboards+folders into unified storage
func ToUnifiedStorage(c utils.CommandLine, cfg *setting.Cfg, sqlStore db.DB) error {
namespace := "default" // TODO... from command line
// Take namespace from command line
namespace := c.String("namespace")
ns, err := authlib.ParseNamespace(namespace)
if err != nil {
return err