-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Remove use_automatic_resource_name, make resource_name automatic #3495
Conversation
dc4d691
to
75e568e
Compare
ead95ec
to
9812b59
Compare
9812b59
to
49bfaea
Compare
6c24575
to
34bbfb6
Compare
@@ -17,11 +17,12 @@ | |||
* [pr#3397](https://github.com/chef/chef/pull/3397): Validate owner exists in directory resources | |||
* [pr#3418](https://github.com/chef/chef/pull/3418): Add `shell_out` mixin to Chef::Resource class for use in `not_if`/`only_if` conditionals, etc. | |||
* [pr#3406](https://github.com/chef/chef/pull/3406): Add wide-char 'Environment' to `broadcast_env_change` mixin for setting windows environment variables | |||
* [pr#3442](https://github.com/chef/chef/pull/3442): Add `resource_name` to top-level Resource class to make defining resources easier. `use_automatic_resource_name` also added, to support convention-based resource naming. | |||
* [pr#3442](https://github.com/chef/chef/pull/3442): Add `resource_name` to top-level Resource class to make defining resources easier. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This changelog entry might be confusing as it looks like that PR was closed and not merged?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was merged actually. Not sure why it says that ...
34bbfb6
to
d795db9
Compare
@thommay all things fixed! |
|
||
# `provides :resource_name, os: 'linux'`) needs to remove the old | ||
# canonical DSL before adding the new one. | ||
if @resource_name && name == @resource_name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is the first check for @resource_name
needed?
can name
be nil?
👍 |
Remove use_automatic_resource_name, make resource_name automatic
No description provided.