-
Notifications
You must be signed in to change notification settings - Fork 285
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
git: when revision
is set, owner/group ownership is enforced even in noop mode
#579
Comments
revision
is set, group ownership is enforced even in noop moderevision
is set, owner/group ownership is enforced even in noop mode
This appears to be the
I think the key line for this is:
To reproduce the method here:
All that runs under noop as part of getting the revision. I think it's fair that vcsrepo does a I don't think that updating the owner of the repo is a good thing to do within a noop; this changes the working copy and is definitely a visible effect that can have ramifications to whatever users and programs are accessing the repo. I don't know about "excludes" either way; I don't use that feature. -Corey |
This line was introduced in: Based on the commit message there, it seems like removing Perhaps vcsrepo should only change the ownership within the -Corey |
Describe the Bug
For a
vcsrepo
resource that has therevision
parameter and theowner
and/orgroup
parameters set, vcsrepo will change the ownership of an existing directory even when the--noop
option is set.Expected Behavior
A noop run should make no changes to the target system.
Steps to Reproduce
This is an example for the
group
parameter; theowner
parameter behaves the same way.test.pp
file with contents:nobody
as the group).Environment
main
:3d78c5b129e4758a12df7e36a009bdc305509dbd
Additional Context
revision
parameter makes this problem go away.Thanks,
Corey
The text was updated successfully, but these errors were encountered: