Commit 583f3fbd authored by Jonathan Hartman's avatar Jonathan Hartman Committed by Ben Abrams
Browse files

Remove unnecessary converge block

There's another [PR](https://github.com/SumoLogic/sumologic-collector-chef-cookbook/pull/121)
open to change this `converege_if_changed` block back to a `converge_by`. However, the block
shouldn't be needed at all, and removing it will also keep [#112](https://github.com/SumoLogic/sumologic-collector-chef-cookbook/issues/112)
solved.
parent 36c9572e
...@@ -19,21 +19,19 @@ class Chef ...@@ -19,21 +19,19 @@ class Chef
end end
action :create do action :create do
converge_by("Create #{source_json_path}") do file source_json_path do
file source_json_path do content config_json
content config_json owner new_resource.owner
owner new_resource.owner group new_resource.group
group new_resource.group mode new_resource.mode
mode new_resource.mode checksum new_resource.checksum
checksum new_resource.checksum backup new_resource.backup
backup new_resource.backup if Platform.windows?
if Platform.windows? inherits new_resource.inherits
inherits new_resource.inherits rights new_resource.rights
rights new_resource.rights
end
# please fix me!
sensitive(/password/i === config_json) # rubocop:disable Style/CaseEquality
end end
# please fix me!
sensitive(/password/i === config_json) # rubocop:disable Style/CaseEquality
end end
end end
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment