openSUSE / salt

openSUSE and SUSE patches and backports for SaltStack
Apache License 2.0
22 stars 52 forks source link

Handle logger flushing already closed file #686

Open m-czernek opened 17 hours ago

m-czernek commented 17 hours ago

This is a partial cherry-pick of https://github.com/saltstack/salt/commit/9683260d61668da8559ecde6caf63a52fedd8790

Note: Test failures are unrelated, fixed with https://github.com/openSUSE/salt-packaging/pull/100

What does this PR do?

Fixes intermittent test failures.

What issues does this PR fix or reference?

Related to https://github.com/SUSE/spacewalk/issues/23286

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

Commits signed with GPG?

Yes

Please review Salt's Contributing Guide for best practices.

See GitHub's page on GPG signing for more information about signing commits with GPG.