Skip to content

Commit

Permalink
Cookstyle 6.2.9 Fixes
Browse files Browse the repository at this point in the history
Issues found and resolved with: recipes/default.rb

 - 21:3 refactor: ChefCorrectness/ChefApplicationFatal - Use raise to force Chef Infra Client to fail instead of using Chef::Application.fatal

Signed-off-by: Xorima Bot <xorimabot@avon-lea.co.uk>
  • Loading branch information
xorimabot committed Apr 14, 2020
1 parent 0dddf8b commit 0144043
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ heartbeat Cookbook CHANGELOG
============================
This file is used to list changes made in each version of the heartbeat cookbook.

## Unreleased

- resolved cookstyle error: recipes/default.rb:21:3 refactor: `ChefCorrectness/ChefApplicationFatal`

## 3.0.0 (2018-07-24)

- Require Chef 13 or later
Expand Down
2 changes: 1 addition & 1 deletion recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#

if platform_family?('rhel', 'fedora') && node['platform_version'].to_i >= 7
Chef::Application.fatal!('RHEL 7+ / Fedora no longer contain heartbeat packages. Cannot continue.')
raise('RHEL 7+ / Fedora no longer contain heartbeat packages. Cannot continue.')
end

include_recipe 'yum-epel::default' if platform_family?('rhel')
Expand Down

0 comments on commit 0144043

Please sign in to comment.