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