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

Modernize windows_path resource #6699

Merged
merged 3 commits into from
Jan 3, 2018
Merged

Modernize windows_path resource #6699

merged 3 commits into from
Jan 3, 2018

Conversation

tas50
Copy link
Contributor

@tas50 tas50 commented Dec 19, 2017

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

@tas50 tas50 requested a review from a team December 19, 2017 22:00
@lamont-granquist
Copy link
Contributor

windows specs are busted because of the (correct) removal of the hardcoded provider. kind of looks like the provider is missing a provides line.

@@ -24,20 +24,12 @@ class Resource
#
# @since 13.4
class WindowsPath < Chef::Resource

resource_name :windows_path
provides :windows_path, os: "windows"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should drop the "os: windows" bit here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was planning to nuke those in Chef 14. I'm certain there's people out there coding around the fact that these are no-ops on non-windows platforms. We can nuke them all out then and everyone is happy.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

they're not no-ops, though, they blow up hard.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and i think right now chefspec testing of windows_path on anything other than windows might be problematic -- sort of a bug we should fix in chefspec, but its easy enough to fix it so that even on linux or whatever we can resolve windows_path to a resource.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought chefspec was one of the big reasons we kept all this stuff the way it was.

Signed-off-by: Tim Smith <tsmith@chef.io>
Signed-off-by: Tim Smith <tsmith@chef.io>
Signed-off-by: Tim Smith <tsmith@chef.io>
@thommay thommay merged commit 7bdb7a2 into master Jan 3, 2018
@tas50 tas50 deleted the windows_path branch January 3, 2018 17:35
@lock
Copy link

lock bot commented Jan 18, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants