Skip to content

Commit

Permalink
Replace get_var with is_ltss variable on HPC create_hdd_textmode
Browse files Browse the repository at this point in the history
`$get_var->('SCC_ADDONS') =~ m/ltss/` breaks `autoyast/prepare_profile` on non
ltss product for some reason. Fortunately `lib/autoyast.pm` provides `is_ltss`
variable. This variable checks whether `SCC_REGCODE_LTSS` job variable is
defined.

Signed-off-by: Ioannis Bonatakis <ybonatakis@suse.com>
  • Loading branch information
b10n1k committed Nov 5, 2022
1 parent fb27a63 commit c30e19c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion data/autoyast_sle15/hpc/create_hdd_textmode_aarch64.xml.ep
Expand Up @@ -74,7 +74,7 @@
<version>15</version>
</addon>
% }
% if ($get_var->('SCC_ADDONS') =~ m/ltss/) {
% if ($is_ltss) {
<addon config:type="map">
<arch>{{ARCH}}</arch>
<name>SLE_HPC-LTSS</name>
Expand Down
2 changes: 1 addition & 1 deletion data/autoyast_sle15/hpc/create_hdd_textmode_x86_64.xml.ep
Expand Up @@ -74,7 +74,7 @@
<version>15</version>
</addon>
% }
% if ($get_var->('SCC_ADDONS') =~ m/ltss/) {
% if ($is_ltss) {
<addon config:type="map">
<arch>{{ARCH}}</arch>
<name>SLE_HPC-LTSS</name>
Expand Down

0 comments on commit c30e19c

Please sign in to comment.