[v11.0.x] Cloudmigration: create migration (#86373)
Cloudmigration: create migration (#85386)
* Cloudmigration: create migration
* fix drone build
* lint fix
* fix unit test
---------
Co-authored-by: Michael Mandrus <michael.mandrus@grafana.com>
(cherry picked from commit 383ebb2bc4)
Co-authored-by: Leonard Gram <leo@xlson.com>
This commit is contained in:
committed by
GitHub
parent
98401be295
commit
f4539f7e9d
@@ -236,7 +236,8 @@ func (s *Service) CreateMigration(ctx context.Context, cmd cloudmigration.CloudM
|
||||
return nil, fmt.Errorf("invalid token") // don't want to leak info here
|
||||
}
|
||||
|
||||
if err := s.store.CreateMigration(ctx, token); err != nil {
|
||||
migration := token.ToMigration()
|
||||
if err := s.store.CreateMigration(ctx, migration); err != nil {
|
||||
return nil, fmt.Errorf("error creating migration: %w", err)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user