From 68ac154a12e4d7274e460a934024ad5589935b7e Mon Sep 17 00:00:00 2001 From: Satellite QE <115476073+Satellite-QE@users.noreply.github.com> Date: Tue, 28 May 2024 12:19:33 -0400 Subject: [PATCH] [6.13.z] Fix content host finalizer (#15195) Fix content host finalizer (#15186) (cherry picked from commit 121a3d8d9be0b1b1d4829fa3b6539fb4718291e2) Co-authored-by: vsedmik <46570670+vsedmik@users.noreply.github.com> --- 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 a3cffed8ee4..9e944b4ce02 100644 --- a/tests/foreman/ui/test_contenthost.py +++ b/tests/foreman/ui/test_contenthost.py @@ -814,7 +814,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