-
Notifications
You must be signed in to change notification settings - Fork 36
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
Fix sending notifications from the ssl_certificate resource #21
Conversation
37be31b
to
a94570f
Compare
Travis CI complains that the |
Hi @karlsvec, Thanks again for your contributions!
Discussed in rubocop/rubocop#494:
I'm not against relaxing some rules when required, but I try to avoid it whenever possible. Maybe we could use guards clauses here: def file_create(desc, f_path, f_content, f_mode = 00644)
# [...]
return resource unless resource.updated_by_last_action?
new_resource.updated_by_last_action(resource.updated_by_last_action?)
resource
end |
Currently, the "updated" status of the ssl_certificate resource is determined by the very last internal file resource from the provider that gets processed. However, we want the ssl_certificate resource to send a notification if *any* of the internal file resources updates, not just the last one.
5f70063
to
0763f28
Compare
@zuazo: Thanks for the feedback, I've updated my branch accordingly. |
Fix sending notifications from the ssl_certificate resource
@zuazo: Huge thanks for the help getting these changes to pass the tests. As an aside, it seems like there should be a new release of the |
@zuazo If by "minor" you mean version bump to |
Released in Thanks! |
Currently, the "updated" status of the ssl_certificate resource is determined by
the very last internal file resource from the provider that gets processed.
However, we want the ssl_certificate resource to send a notification if any of
the internal file resources updates, not just the last one.