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

Update ChefStyle/FileMode to support files_mode as well #702

Merged
merged 1 commit into from
Jul 30, 2020
Merged

Conversation

tas50
Copy link
Contributor

@tas50 tas50 commented Jul 30, 2020

files_mode exists in the remote_directory resource and should also be a string. I also converted this cop to the new format, improved the warning text, and improved the examples while I was in here.

Signed-off-by: Tim Smith tsmith@chef.io

@tas50 tas50 requested review from a team as code owners July 30, 2020 04:30
files_mode exists in the remote_directory resource and should also be a string. I also converted this cop to the new format, improved the warning text, and improved the examples while I was in here.

Signed-off-by: Tim Smith <tsmith@chef.io>
@tas50
Copy link
Contributor Author

tas50 commented Jul 30, 2020

Fixes #693

@phiggins
Copy link
Contributor

Execute has a umask property that could have the same problem:

https://github.com/chef/chef/blob/cae55b3a7297672415b4da58434ad4a8ab8d0589/lib/chef/resource/execute.rb#L521-L522

@tas50 tas50 merged commit ba6cfd0 into master Jul 30, 2020
@tas50
Copy link
Contributor Author

tas50 commented Jul 30, 2020

Yeah I should see where else this makes sense to expand to

@tas50 tas50 deleted the files_mode branch September 10, 2020 04:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants