Skip to content

Commit

Permalink
Fix content host finalizer (#15186)
Browse files Browse the repository at this point in the history
(cherry picked from commit 121a3d8)
  • Loading branch information
vsedmik authored and web-flow committed May 28, 2024
1 parent 36c46be commit 4298fbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/foreman/ui/test_contenthost.py
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,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
Expand Down

0 comments on commit 4298fbc

Please sign in to comment.