Commit 1bdb8664 authored by Xorima Bot's avatar Xorima Bot

Cookstyle 6.2.9 Fixes

Issues found and resolved with: recipes/client.rb

 - 44:7 refactor: ChefCorrectness/ChefApplicationFatal - Use raise to force Chef Infra Client to fail instead of using Chef::Application.fatal
Signed-off-by: default avatarXorima Bot <xorimabot@avon-lea.co.uk>
parent 654dd34a
......@@ -2,6 +2,10 @@
This file is used to list changes made in each version of the rsyslog cookbook.
## Unreleased
- resolved cookstyle error: recipes/client.rb:44:7 refactor: `ChefCorrectness/ChefApplicationFatal`
## 7.0.1 (2019-12-23)
- Fix the systemd detection logic - [@tas50](https://github.com/tas50)
......
......@@ -41,7 +41,7 @@ end
unless node['rsyslog']['custom_remote'].empty? || node['rsyslog']['custom_remote'].first.empty?
node['rsyslog']['custom_remote'].each do |server|
if server['server'].nil?
Chef::Application.fatal!('Found a custom_remote server with no IP. Check your custom_remote attribute definition!')
raise('Found a custom_remote server with no IP. Check your custom_remote attribute definition!')
end
end
rsyslog_servers += node['rsyslog']['custom_remote']
......
Markdown is supported
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