Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions core/gallery/backends.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,12 @@ func InstallBackendFromGallery(ctx context.Context, galleries []config.Gallery,
return fmt.Errorf("no backend found with name %q", name)
}

if force {
if err := DeleteBackendFromSystem(systemState, name); err != nil {
return fmt.Errorf("failed to uninstall existing backend %s: %w", name, err)
}
}

if backend.IsMeta() {
xlog.Debug("Backend is a meta backend", "systemState", systemState, "name", name)

Expand Down
Loading