SUSE / rmt

RPM repository mirroring tool and registration proxy for SUSE Customer Center.
Other
38 stars 45 forks source link

Check access for repositories or registry for LTSS #1202

Closed jesusbv closed 3 months ago

jesusbv commented 3 months ago

Description

If the system is hybrid, it means is PAYG with an add on product (extension) activated. If instance metadata verification succeeded for that system, we check that the registration code is still valid.

How to test

Running zypper ref or a zypper command on a hybrid system (PAYG with an add-on product activated) with a expired subscription should show access denied message

Change Type

Please select the correct option.

Checklist

Please check off each item if the requirement is met.

Review

Please check out our review guidelines and get in touch with the author to get a shared understanding of the change.

jesusbv commented 3 months ago

The addition seems to be verbatim a duplication of content used further down the same method. Instead of duplicating the code, let's refactor it into it's own method and just call that twice under different circumstances.

Yep, that's why I converted it to draft, few more things to do but still good to start the review process