From a179d87b5e2b3f5ade902f0db0887f8973a9fdde Mon Sep 17 00:00:00 2001 From: Steven Pritchard Date: Thu, 5 Sep 2024 15:17:57 -0500 Subject: [PATCH] [puppetsync] Clean up for linters Clean up files distributed by puppetsync for various linters. Also fix a quoting issue in create-github-release action. --- spec/spec_helper.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index e076f23..223b5ac 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,5 +1,4 @@ # frozen_string_literal: true - # # ------------------------------------------------------------------------------ # NOTICE: **This file is maintained with puppetsync** @@ -87,7 +86,7 @@ def set_hieradata(hieradata) # If nothing else... c.default_facts = { production: { - # :fqdn => 'production.rspec.test.localdomain', + #:fqdn => 'production.rspec.test.localdomain', path: '/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin', concat_basedir: '/tmp' } @@ -148,9 +147,9 @@ def set_hieradata(hieradata) # sanitize hieradata if defined?(hieradata) - set_hieradata(hieradata.tr(':', '_')) + set_hieradata(hieradata.gsub(':', '_')) elsif defined?(class_name) - set_hieradata(class_name.tr(':', '_')) + set_hieradata(class_name.gsub(':', '_')) end end