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

os fixtures updated for rhel9 #14876

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pytest_fixtures/component/os.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def default_os(
"""
os = getattr(request, 'param', None)
if os is None:
search_string = 'name="RedHat" AND (major="6" OR major="7" OR major="8")'
search_string = 'name="RedHat" AND (major="6" OR major="7" OR major="8" OR major="9")'
else:
version = os.split(' ')[1].split('.')
search_string = f'family="Redhat" AND major="{version[0]}" AND minor="{version[1]}"'
Expand Down
2 changes: 1 addition & 1 deletion pytest_fixtures/component/puppet.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def session_puppet_enabled_proxy(session_puppet_enabled_sat):
@pytest.fixture(scope='session')
def session_puppet_default_os(session_puppet_enabled_sat):
"""Default OS on the puppet-enabled Satellite"""
search_string = 'name="RedHat" AND (major="6" OR major="7" OR major="8")'
search_string = 'name="RedHat" AND (major="6" OR major="7" OR major="8" OR major="9")'
return (
session_puppet_enabled_sat.api.OperatingSystem()
.search(query={'search': search_string})[0]
Expand Down
Loading