Skip to content

Commit

Permalink
Fix condition for skipping client repo sync for EL10
Browse files Browse the repository at this point in the history
  • Loading branch information
Gauravtalreja1 authored Dec 23, 2024
1 parent da7e1e2 commit 3a86dd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pytest_fixtures/component/provision_pxe.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def module_provisioning_rhel_content(
content_view = sat.api.ContentView(organization=module_sca_manifest_org).create()

# Custom Content for Client repo
if is_open('SAT-27193') and int(rhel_ver) == 10:
if is_open('SAT-27193') and int(rhel_ver) != 10:
custom_product = sat.api.Product(
organization=module_sca_manifest_org, name=f'rhel{rhel_ver}_{gen_string("alpha")}'
).create()
Expand Down Expand Up @@ -131,7 +131,7 @@ def module_provisioning_rhel_content(
).create()

# Ensure client repo is enabled in the activation key
if is_open('SAT-27193') and int(rhel_ver) == 10:
if is_open('SAT-27193') and int(rhel_ver) != 10:
content = ak.product_content(data={'content_access_mode_all': '1'})['results']
client_repo_label = [repo['label'] for repo in content if repo['name'] == client_repo.name][
0
Expand Down

0 comments on commit 3a86dd7

Please sign in to comment.