Skip to content

Commit

Permalink
Merge pull request #93 from lrsmith/master
Browse files Browse the repository at this point in the history
Added check to avoid restart if service is disabled or notify restart…
  • Loading branch information
vkhatri authored Feb 18, 2017
2 parents 4df584e + 6ea1eb7 commit 1532447
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/provider_prospector.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def prospector_file
t = file "prospector_#{new_resource.name}" do
path ::File.join(node['filebeat']['prospectors_dir'], "prospector-#{new_resource.name}.yml")
content file_content
notifies :restart, 'service[filebeat]'
notifies :restart, 'service[filebeat]' if node['filebeat']['notify_restart'] && !node['filebeat']['disable_service']
action action
end
t.updated?
Expand Down

0 comments on commit 1532447

Please sign in to comment.