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

[master] Dereference symlinks to set proper __cli opt #65435

Merged
merged 3 commits into from
Dec 16, 2023

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
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