From eb66c09e63ba9b04f3d86c240ec25de52647bc84 Mon Sep 17 00:00:00 2001 From: Bernhard Suttner Date: Thu, 10 Oct 2024 22:11:18 +0200 Subject: [PATCH] Refs #37913 - Make sure to update package list and facts on all OSes Co-authored-by: Bernhard Suttner Co-authored-by: Nadja Heitmann --- .../host_init_config/host_init_config_default.erb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/unattended/provisioning_templates/host_init_config/host_init_config_default.erb b/app/views/unattended/provisioning_templates/host_init_config/host_init_config_default.erb index fbc84205d68..5fc91eeaa07 100644 --- a/app/views/unattended/provisioning_templates/host_init_config/host_init_config_default.erb +++ b/app/views/unattended/provisioning_templates/host_init_config/host_init_config_default.erb @@ -97,8 +97,9 @@ else echo "Host [<%= @host.name %>] successfully configured, but failed to set built status." fi -<% if plugin_present?('katello') && @host.operatingsystem.family == 'Redhat' -%> +<% if plugin_present?('katello') -%> subscription-manager facts --update +subscription-manager repos <% end -%> exit 0