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

Dereference symlinks to set proper __cli opt (bsc#1215963) #611

Merged
merged 3 commits into from
Nov 13, 2023

Conversation

meaksh
Copy link
Member

@meaksh meaksh commented Oct 31, 2023

This PR backports saltstack/salt#65435 to openSUSE/release/3006.0.


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.

@meaksh meaksh requested a review from vzhestkov October 31, 2023 13:45
@vzhestkov
Copy link
Contributor

@meaksh not sure if I understood the relation between this change and usage of mock. Is there really such relation or the description is from the other change?

@meaksh
Copy link
Member Author

meaksh commented Nov 6, 2023

@meaksh not sure if I understood the relation between this change and usage of mock. Is there really such relation or the description is from the other change?

Oops, I made a mistake when copying the PR description 😢 I'll update it. :)

Copy link
Contributor

@vzhestkov vzhestkov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for taking care of it 👍

@meaksh meaksh merged commit 9942c48 into openSUSE/release/3006.0 Nov 13, 2023
3 checks passed
@meaksh meaksh deleted the openSUSE/fix/3006.0-set-proper-__cli branch November 13, 2023 15:04
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.

2 participants