os-autoinst-distri-opensuse
os-autoinst-distri-opensuse copied to clipboard
Added new check for LTSS regcode
If the variable SCC_REGCODE_LTSS
exists, the test will prefer to use it instead of SCC_REGCODE
- Related ticket: https://progress.opensuse.org/issues/157069
- Verification run: in_progress
It was my mistake suggesting this. I realized after that.. sorry.
What I would do is the following in the <addons>
section:
% if ($get_var->('SCC_ADDONS') ~= m/ltss/) {
<addon>
<name>SLES-LTSS</name>
<version>{{VERSION}}</version>
<arch>{{ARCH}}</arch>
</addon>
% }
the condition could be different, depending on how you want to manage it, you can also do % if ($get_var->('SCC_REGCODE_LTSS')) {
See how it is done in other places https://github.com/os-autoinst/os-autoinst-distri-opensuse/blob/master/data/virtualization/autoyast/guest_15.xml.ep#L41C14-L41C23
It was my mistake suggesting this. I realized after that.. sorry. What I would do is the following in the
<addons>
section:% if ($get_var->('SCC_ADDONS') ~= m/ltss/) { <addon> <name>SLES-LTSS</name> <version>{{VERSION}}</version> <arch>{{ARCH}}</arch> </addon> % }
the condition could be different, depending on how you want to manage it, you can also do
% if ($get_var->('SCC_REGCODE_LTSS')) {
See how it is done in other places https://github.com/os-autoinst/os-autoinst-distri-opensuse/blob/master/data/virtualization/autoyast/guest_15.xml.ep#L41C14-L41C23
ok, I didn't realize this condition is already there...