From 01cfd35fc7192667e338493047c77a80544a7d05 Mon Sep 17 00:00:00 2001 From: Satellite QE <115476073+Satellite-QE@users.noreply.github.com> Date: Tue, 28 May 2024 09:07:08 -0400 Subject: [PATCH] [6.15.z] Fix content host finalizer (#15196) --- tests/foreman/ui/test_contenthost.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/foreman/ui/test_contenthost.py b/tests/foreman/ui/test_contenthost.py index fc4071412b2..516d741e9c2 100644 --- a/tests/foreman/ui/test_contenthost.py +++ b/tests/foreman/ui/test_contenthost.py @@ -871,7 +871,7 @@ def test_positive_check_ignore_facts_os_setting( # Change necessary setting to true set_ignore_facts_for_os(module_target_sat, True) # Add cleanup function to roll back setting to default value - request.addfinalizer(set_ignore_facts_for_os) + request.addfinalizer(lambda: set_ignore_facts_for_os(module_target_sat, False)) # Read all facts for corresponding host facts = host.get_facts(data={'per_page': 10000})['results'][vm.hostname] # Modify OS facts to another values and upload them to the server