app/views/foreman/job_templates/install_errata.erb in katello-4.3.0 vs app/views/foreman/job_templates/install_errata.erb in katello-4.3.1
- old
+ new
@@ -1,26 +1,23 @@
<%#
kind: job_template
name: Install Errata - Katello SSH Default
job_category: Katello
-description_format: 'Install errata %{Errata search query}'
+description_format: 'Install errata %{errata}'
feature: katello_errata_install
provider_type: SSH
template_inputs:
-- name: Errata search query
- description: Filter criteria for errata to be installed.
+- name: errata
+ description: A comma-separated list of errata to install
input_type: user
- required: false
+ required: true
foreign_input_sets:
- template: Package Action - SSH Default
exclude: action,package
%>
-
<% if @host.operatingsystem.family == 'Suse' -%>
<% advisories = input(:errata).split(',').join(' ') %>
<%= render_template('Package Action - SSH Default', :action => 'install -n -t patch', :package => advisories) %>
<% else %>
- <% advisory_ids = @host.advisory_ids(search: input("Errata search query")) %>
-
- <% advisories = advisory_ids.map { |e| "--advisory=#{e}" }.join(' ') %>
+ <% advisories = input(:errata).split(',').map { |e| "--advisory=#{e}" }.join(' ') %>
<%= render_template('Package Action - SSH Default', :action => 'update-minimal', :package => advisories) %>
-<% end %>
\ No newline at end of file
+<% end %>