-
Notifications
You must be signed in to change notification settings - Fork 260
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
Log deprecation message for recipes using easy_install. #585
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,11 @@ | |
# NB: This recipe is compatible with Chef <= 12 only. If you're using Chef 13 or higher | ||
# please refer to the README of the cookbook. | ||
|
||
log 'message' do | ||
message 'This recipe will be deprecated in version 3.0.0 of the cookbook. See README.md chapter ddtrace-python for more infos.' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Also, can you remind the name of the cookbook in the message? ( There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. thanks 👍 |
||
level :warn | ||
end | ||
|
||
easy_install_package 'ddtrace' do | ||
version node['datadog']['ddtrace_python_version'] | ||
end |
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.
any reason to use the resource instead of
Chef::Log
? (genuine question, didn't know about the resource)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.
Not any, I've changed to use Chef::Log as I see there is already many usage of it in the repo, I prefer to stick with known things.