Skip to content

Commit

Permalink
Fixes #38094 - Support --els switch in convert2rhel
Browse files Browse the repository at this point in the history
  • Loading branch information
stejskalleos committed Dec 12, 2024
1 parent 7a10d39 commit eb80c42
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion app/views/templates/script/convert2rhel_analyze.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand All @@ -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
Expand Down

0 comments on commit eb80c42

Please sign in to comment.