Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[6.15.z] Fix content host finalizer #15196

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading