Skip to content

Conversation

@vzhestkov
Copy link
Contributor

What does this PR do?

In case of creating symlinks to salt-call, the behaviour of some modules could be different than expected as __cli contains the name of the symlink instead of salt-call itself. This change will dereference the symlinks to set __cli opt to the proper value.

Previous Behavior

Different behaviour on calling modules like state, event and git if the call is performed with symlink to salt-call instead of salt-call itself.

New Behavior

The same behaviour for salt-call and any name of symlink pointint to it as expected.

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 vzhestkov requested a review from a team as a code owner October 20, 2023 12:20
@vzhestkov vzhestkov requested review from Ch3LL and removed request for a team October 20, 2023 12:20
@salt-project-bot-prod-environment salt-project-bot-prod-environment bot changed the title Dereference symlinks to set proper __cli opt [master] Dereference symlinks to set proper __cli opt Oct 20, 2023
@vzhestkov vzhestkov temporarily deployed to ci October 20, 2023 12:38 — with GitHub Actions Inactive
@vzhestkov vzhestkov temporarily deployed to ci October 20, 2023 12:38 — with GitHub Actions Inactive
@vzhestkov vzhestkov temporarily deployed to ci October 20, 2023 12:39 — with GitHub Actions Inactive
@vzhestkov vzhestkov temporarily deployed to ci October 20, 2023 12:39 — with GitHub Actions Inactive
@vzhestkov vzhestkov temporarily deployed to ci October 20, 2023 12:39 — with GitHub Actions Inactive
@vzhestkov vzhestkov temporarily deployed to ci October 20, 2023 12:39 — with GitHub Actions Inactive
@vzhestkov vzhestkov temporarily deployed to ci October 20, 2023 15:34 — with GitHub Actions Inactive
@vzhestkov vzhestkov temporarily deployed to ci October 20, 2023 15:34 — with GitHub Actions Inactive
@vzhestkov vzhestkov temporarily deployed to ci October 20, 2023 15:34 — with GitHub Actions Inactive
@vzhestkov vzhestkov temporarily deployed to ci October 20, 2023 15:34 — with GitHub Actions Inactive
@vzhestkov vzhestkov temporarily deployed to ci October 20, 2023 15:34 — with GitHub Actions Inactive
@vzhestkov vzhestkov temporarily deployed to ci October 20, 2023 15:34 — with GitHub Actions Inactive
@vzhestkov vzhestkov temporarily deployed to ci October 20, 2023 17:13 — with GitHub Actions Inactive
@vzhestkov vzhestkov temporarily deployed to ci October 20, 2023 17:13 — with GitHub Actions Inactive
@vzhestkov vzhestkov temporarily deployed to ci October 20, 2023 17:13 — with GitHub Actions Inactive
@vzhestkov vzhestkov temporarily deployed to ci October 20, 2023 17:13 — with GitHub Actions Inactive
@vzhestkov vzhestkov temporarily deployed to ci October 20, 2023 17:13 — with GitHub Actions Inactive
@vzhestkov vzhestkov temporarily deployed to ci October 20, 2023 17:13 — with GitHub Actions Inactive
@dwoz dwoz merged commit f597c14 into saltstack:master Dec 16, 2023
agraul pushed a commit to agraul/salt that referenced this pull request Jan 27, 2025
…#611)

* Dereference symlinks to set proper __cli

* Add changelog entry

* Add unit tests to check path is expanded

---------

Co-authored-by: vzhestkov <vzhestkov@suse.com>

BACKPORT-UPSTREAM=saltstack#65435
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants