From 28e0a4e7924db41e5ef2846a464832c66ec3c710 Mon Sep 17 00:00:00 2001 From: William Bradford Clark Date: Mon, 19 Aug 2024 00:13:51 -0400 Subject: [PATCH] Fixes #37716 - Add an option to disable the 'Reclaim Space' warning --- .../foreman/smart_proxies/_reclaim_space.html.erb | 12 +++++++----- lib/katello/plugin.rb | 6 ++++++ 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/app/views/foreman/smart_proxies/_reclaim_space.html.erb b/app/views/foreman/smart_proxies/_reclaim_space.html.erb index 416f4c8ce72..44355a211d7 100644 --- a/app/views/foreman/smart_proxies/_reclaim_space.html.erb +++ b/app/views/foreman/smart_proxies/_reclaim_space.html.erb @@ -1,10 +1,12 @@

<%= _('Reclaim Space') %>

-

- Warning: reclaiming space will delete all cached content units in "On Demand" repositories on this Smart Proxy.
- Take precaution when cleaning custom repositories whose upstream parents don't keep old package versions. - Storage used by deleted repositories will be reclaimed during the next orphan cleanup run. -

+ <% unless Setting[:hide_reclaim_space_warning] %> +

+ Warning: reclaiming space will delete all cached content units in "On Demand" repositories on this Smart Proxy.
+ Take precaution when cleaning custom repositories whose upstream parents don't keep old package versions. + Storage used by deleted repositories will be reclaimed during the next orphan cleanup run. +

+ <% end %>