From b4574c713f3d70c5839e7b98e3d6d0f3781f56ef Mon Sep 17 00:00:00 2001 From: Aaron Shannon Date: Wed, 2 Oct 2024 13:04:21 +0100 Subject: [PATCH] PE-38801 Linting errors fixed --- tasks/get_group_rules.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tasks/get_group_rules.rb b/tasks/get_group_rules.rb index 5c8f12dc..9aa9eec4 100755 --- a/tasks/get_group_rules.rb +++ b/tasks/get_group_rules.rb @@ -5,11 +5,12 @@ require 'net/http' require 'puppet' +# GetInfrastructureAgentGroupRules task class class GetInfrastructureAgentGroupRules def execute! infrastructure_agent_group = groups.find { |obj| obj['name'] == 'PE Infrastructure Agent' } if infrastructure_agent_group - puts "WARNING: The following existing rules on the PE Infrastructure Agent group will be overwritten with default values:" + puts 'WARNING: The following existing rules on the PE Infrastructure Agent group will be overwritten with default values:' puts JSON.pretty_generate(infrastructure_agent_group['rule']) else puts JSON.pretty_generate({ 'error' => 'PE Infrastructure Agent group does not exist' }) @@ -39,4 +40,4 @@ def https(port) unless ENV['RSPEC_UNIT_TEST_MODE'] Puppet.initialize_settings GetInfrastructureAgentGroupRules.new.execute! -end \ No newline at end of file +end