os-autoinst-distri-opensuse icon indicating copy to clipboard operation
os-autoinst-distri-opensuse copied to clipboard

Added new check for LTSS regcode

Open pablo-herranz opened this issue 11 months ago • 2 comments

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

pablo-herranz avatar Mar 12 '24 11:03 pablo-herranz

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

jlausuch avatar Mar 12 '24 14:03 jlausuch

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...

jlausuch avatar Mar 12 '24 15:03 jlausuch