Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add os product tag based on /etc/os-release #2

Open
wants to merge 1 commit into
base: atix-main
Choose a base branch
from

Conversation

sbernhard
Copy link
Member

Currently, content filter based on the product-tags only works for RHEL. The content filter method should also be usable for other OSses, like CentOS, SuSE or even Debian/Ubuntu. With this approach, a [os-name]-[os-version] tag is created based on /etc/os-release. The tag is only generated and added if the feature is activated by setting use_os_release_product=1 in /etc/rhsm/rhsm.conf

@sbernhard sbernhard force-pushed the add_os_product_tag branch 2 times, most recently from fdd8f5b to f409870 Compare January 24, 2025 16:33
Copy link

github-actions bot commented Jan 24, 2025

Coverage

Coverage (computed on Fedora latest) •
FileStmtsMissCoverMissing
__init__.py00100% 
subscription_manager
   repolib.py3965586%35, 37, 47, 49–53, 86–91, 94, 99, 105, 136, 139, 186–187, 241–242, 248, 250, 414–417, 419–420, 422, 424, 426–428, 439–445, 488–491, 499–500, 507, 523–524, 530, 579, 669
subscription_manager/model
   __init__.py610100% 
TOTAL17541452774% 

Tests Skipped Failures Errors Time
2421 14 💤 0 ❌ 0 🔥 32.185s ⏱️

@sbernhard sbernhard force-pushed the add_os_product_tag branch 8 times, most recently from 61ef1c5 to c008cf5 Compare January 25, 2025 11:02
Currently, content filter based on the product-tags only works for RHEL.
The content filter method should also be usable for other OSses, like
CentOS, SuSE or even Debian/Ubuntu. With this approach, a
[os-name]-[os-version] tag is created based on /etc/os-release. The tag
is only generated and added if the feature is activated by setting
use_os_release_product=1 in /etc/rhsm/rhsm.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant