From 0144043234a822dfa85d2207ef2a99e1c02168bd Mon Sep 17 00:00:00 2001 From: Xorima Bot Date: Tue, 14 Apr 2020 21:38:24 +0000 Subject: [PATCH] Cookstyle 6.2.9 Fixes 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 --- CHANGELOG.md | 4 ++++ recipes/default.rb | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 69f9ab4..a0001f8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/recipes/default.rb b/recipes/default.rb index 397a3dd..69f10d8 100644 --- a/recipes/default.rb +++ b/recipes/default.rb @@ -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')