From b4298571dd9a7dd7f566e69a9f2d56b9cb8f2320 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Gajdu=C5=A1ek?= Date: Tue, 21 Nov 2023 11:45:54 +0100 Subject: [PATCH] Yield details always, no need to check for SCA eligibility --- tests/foreman/cli/test_host.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/tests/foreman/cli/test_host.py b/tests/foreman/cli/test_host.py index b7378829671..707ab0266f8 100644 --- a/tests/foreman/cli/test_host.py +++ b/tests/foreman/cli/test_host.py @@ -1498,9 +1498,8 @@ def test_positive_provision_baremetal_with_uefi_secureboot(): def setup_custom_repo(target_sat, module_org, katello_host_tools_host, request): """Create custom repository content""" - if sca_eligible := module_org.sca_eligible().get('simple_content_access_eligible', False): - sca_enabled = module_org.simple_content_access - module_org.sca_disable() + sca_enabled = module_org.simple_content_access + module_org.sca_disable() # get package details details = {} @@ -1546,9 +1545,9 @@ def setup_custom_repo(target_sat, module_org, katello_host_tools_host, request): ) # refresh repository metadata katello_host_tools_host.subscription_manager_list_repos() - if sca_eligible: - yield - module_org.sca_enable() if sca_enabled else module_org.sca_disable() + if sca_enabled: + yield details + module_org.sca_enable() else: return details