Skip to content

Commit

Permalink
[6.15.z] Fix content host finalizer (#15196)
Browse files Browse the repository at this point in the history
  • Loading branch information
Satellite-QE authored May 28, 2024
1 parent 8c69f95 commit 01cfd35
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 01cfd35

Please sign in to comment.