-
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] file.directory ignores test=true and removes symlink #66049
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. |
I'm not able to reproduce, neither on 3006.1 nor the head of the |
Apologies @terminalmage , looks like it only happens when "backupname" is present:
|
@groucho86 That helps! I have found the bug. I will have a PR open in the next day or two. |
@groucho86 see #66120. |
Description
Despite test=true, file.directory state is deleting a symlink
Setup
Please be as specific as possible and give set-up details.
Steps to Reproduce the behavior
Running the state via CLI equivalent:
sudo salt-call state.single file.directory name="/tmp/dest_folder" allow_symlink=False force=True test=true
returns
But running the above state.apply test=true returns
Expected behavior
I expect the state.apply test=true not to modify the minion's filesystem.
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: