mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
SupportBundles: Build tars in memory (#61581)
* build tar in memory * match tag
This commit is contained in:
@@ -3,8 +3,6 @@ package supportbundlesimpl
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"time"
|
||||
|
||||
"github.com/grafana/grafana/pkg/api/routing"
|
||||
@@ -151,12 +149,6 @@ func (s *Service) remove(ctx context.Context, uid string) error {
|
||||
return fmt.Errorf("could not remove a support bundle with uid %s as it is still being created", uid)
|
||||
}
|
||||
|
||||
if bundle.FilePath != "" {
|
||||
if err := os.RemoveAll(filepath.Dir(bundle.FilePath)); err != nil {
|
||||
return fmt.Errorf("could not remove directory for support bundle %s: %w", uid, err)
|
||||
}
|
||||
}
|
||||
|
||||
// Remove the KV store entry
|
||||
return s.store.Remove(ctx, uid)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user