From 009c83596eb22b1684e3759de59bf3fea17aa3ff Mon Sep 17 00:00:00 2001 From: vsedmik <46570670+vsedmik@users.noreply.github.com> Date: Tue, 28 May 2024 14:55:34 +0200 Subject: [PATCH] Fix content host finalizer (#15186) --- 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