openSUSE / salt

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

Fix __salt__ when used via __utils__ (bsc#1220357) #641

Closed vzhestkov closed 3 weeks ago

vzhestkov commented 6 months ago

What does this PR do?

Backport of https://github.com/saltstack/salt/pull/65696

In some cases salt-call on the salt-ssh client side is rereading /etc/salt/minion explicitly what doesn't make any sense. The upstreram PR contains the fix of it in https://github.com/openSUSE/salt/commit/ef140fc308533d9c49179c7981e6e6041efa0491

What issues does this PR fix or reference?

Tracks: https://github.com/SUSE/spacewalk/issues/23799

Previous Behavior

In some cases salt-call on the salt-ssh client side is rereading /etc/salt/minion.

New Behavior

Prevent salt-call of rereading /etc/salt/minion with no reason.

Merge requirements satisfied?

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

Commits signed with GPG?

Yes/No

Please review Salt's Contributing Guide for best practices.

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

vzhestkov commented 3 weeks ago

Closing in favor of https://github.com/openSUSE/salt/pull/683