Skip to content

Add ability for file.symlink to not set ownership on existing links#63106

Merged
Ch3LL merged 3 commits into
saltstack:masterfrom
nicholasmhughes:retain-symlink-ownership
Dec 2, 2022
Merged

Add ability for file.symlink to not set ownership on existing links#63106
Ch3LL merged 3 commits into
saltstack:masterfrom
nicholasmhughes:retain-symlink-ownership

Conversation

@nicholasmhughes

Copy link
Copy Markdown
Contributor

What does this PR do?

See issue for details.

What issues does this PR fix or reference?

Fixes: #63093

Previous Behavior

Salt would always set user/group on the link regardless if the user/group parameters were set.

New Behavior

The added inherit_user_and_group parameter allows the existing ownership to be used for existing links when user/group parameters are not used.

Merge requirements satisfied?

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

Commits signed with GPG?

Yes

Please review Salt's Contributing Guide for best practices.

See GitHub's page on GPG signing for more information about signing commits with GPG.

@nicholasmhughes nicholasmhughes requested a review from a team as a code owner November 23, 2022 16:36
@nicholasmhughes nicholasmhughes requested review from MKLeb and removed request for a team November 23, 2022 16:36
@nicholasmhughes nicholasmhughes added the Sulfur v3006.0 release code name and version label Nov 23, 2022
@MKLeb

MKLeb commented Nov 28, 2022

Copy link
Copy Markdown
Contributor

The failing Windows tests seem to be related. The Photon ones, however, do not.

@nicholasmhughes

Copy link
Copy Markdown
Contributor Author

re-run pr-centos-7-x86_64-py3-m2crypto-pytest

@Ch3LL Ch3LL merged commit 67e800c into saltstack:master Dec 2, 2022
@nicholasmhughes nicholasmhughes deleted the retain-symlink-ownership branch December 2, 2022 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Sulfur v3006.0 release code name and version

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE REQUEST] file.symlink should not try to set ownership

3 participants