-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
[BUG] state.sls_exists not working with salt-ssh #66893
Comments
Hi there! Welcome to the Salt Community! Thank you for making your first contribution. We have a lengthy process for issues and PRs. Someone from the Core Team will follow up as soon as possible. In the meantime, here’s some information that may help as you continue your Salt journey.
There are lots of ways to get involved in our community. Every month, there are around a dozen opportunities to meet with other contributors and the Salt Core team and collaborate in real time. The best way to keep track is by subscribing to the Salt Community Events Calendar. |
Local testing of PR #66894 fixes the issue for me! |
fixes: saltstack#66893 Signed-off-by: Olivier Mehani <shtrom@ssji.net>
fixes: saltstack#66893 Signed-off-by: Olivier Mehani <shtrom@ssji.net> Fix typo in sate.sls_exists doctstrings (module & ssh wrapper) Signed-off-by: Olivier Mehani <shtrom@ssji.net>
Description
Similar to #29253,
state.sls_exists
doesn't work withsalt-ssh
. Likely just needs an implementation in the ssh client.I need it to implement conditional state inclusion, e.g., #16687 or #20010. I guess I could work around the issue bit creating a deterministic id in the state to detect, and use
state.sls_id
instead, but it's a bit more involved.Setup
(Please provide relevant configs and/or SLS files (be sure to remove sensitive info. There is no general set-up of Salt.)
Please be as specific as possible and give set-up details.
With a simple state file, e.g.,
test.sls
in a local setup as follows:Checking for state existence locally works.
But using the same setup via salt-ssh doesn't, and raises an exception when called from another state.
Both the local and remote machines are running ArchLinux.
Steps to Reproduce the behavior
See above for reproduction setup, debug output below.
sudo -E salt-ssh -l debug remote state.sls_exists test
sudo -E salt-ssh -l debug remote state.apply test2t
Expected behavior
... and no exception when called from another state.
Versions Report
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)The text was updated successfully, but these errors were encountered: