Skip to content

Commit

Permalink
[6.14.z] Fix content host finalizer (#15194)
Browse files Browse the repository at this point in the history
Fix content host finalizer (#15186)

(cherry picked from commit 121a3d8)

Co-authored-by: vsedmik <[email protected]>
  • Loading branch information
Satellite-QE and vsedmik authored May 28, 2024
1 parent f07e9ae commit b8760b9
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 b8760b9

Please sign in to comment.