Skip to content

Commit

Permalink
Fix content host finalizer (#15186)
Browse files Browse the repository at this point in the history
  • Loading branch information
vsedmik authored May 28, 2024
1 parent 72ec9df commit 121a3d8
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 @@ -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
Expand Down

0 comments on commit 121a3d8

Please sign in to comment.