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

[3006.x]Manage symlinks after dirs and files #66857

Merged
merged 6 commits into from
Sep 19, 2024
Merged

Conversation

twangboy
Copy link
Contributor

@twangboy twangboy commented Aug 28, 2024

What does this PR do?

Fix intermittent issue with file.recurse and symlinks.

What issues does this PR fix or reference?

Fixes #64630

Previous Behavior

The state would fail saying that the file was missing.
There seems to be a race condition where it is comparing the hash of the symlinked target file before it is present.

New Behavior

The state finishes successfully. It does the symlink hashing last to make sure the target files are present.

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

Commits signed with GPG?

Yes

dmurphy18
dmurphy18 previously approved these changes Aug 28, 2024
salt/states/file.py Outdated Show resolved Hide resolved
@twangboy twangboy self-assigned this Aug 29, 2024
@twangboy twangboy added this to the Sulfur v3006.10 milestone Sep 3, 2024
salt/states/file.py Show resolved Hide resolved
salt/states/file.py Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test:full Run the full test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants