From eb80c42048716cdef27568512ecd7641117f2998 Mon Sep 17 00:00:00 2001 From: Leos Stejskal Date: Wed, 11 Dec 2024 10:04:20 +0100 Subject: [PATCH] Fixes #38094 - Support --els switch in convert2rhel --- .../templates/script/convert2rhel_analyze.erb | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/app/views/templates/script/convert2rhel_analyze.erb b/app/views/templates/script/convert2rhel_analyze.erb index 6aba650b8..0fcaa7747 100644 --- a/app/views/templates/script/convert2rhel_analyze.erb +++ b/app/views/templates/script/convert2rhel_analyze.erb @@ -5,7 +5,19 @@ model: JobTemplate job_category: Convert 2 RHEL provider_type: script kind: job_template +- name: ELS + required: true + input_type: user + description: Use an Extended Lifecycle Support (ELS) add-on subscription + advanced: false + value_type: plain + options: "yes\r\nno" + default: "yes" + hidden_value: false %> +<%- + els = input('ELS') == "yes" ? "--els" : "" +-%> <% if @host.operatingsystem.family == 'Redhat' -%> if ! [ $(id -u) -eq 0 ]; then echo "You must run convert2rhel as a root user." @@ -18,7 +30,7 @@ fi export CONVERT2RHEL_THROUGH_FOREMAN=1 -/usr/bin/convert2rhel analyze -y +/usr/bin/convert2rhel analyze -y <%= els %> # Workaround for https://issues.redhat.com/browse/RHELC-1280 subscription-manager facts --update