Skip to content

Commit

Permalink
[puppetsync] Clean up for linters
Browse files Browse the repository at this point in the history
Clean up files distributed by puppetsync for various linters.

Also fix a quoting issue in create-github-release action.
  • Loading branch information
silug committed Sep 5, 2024
1 parent 3bdfb52 commit a179d87
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# frozen_string_literal: true

#
# ------------------------------------------------------------------------------
# NOTICE: **This file is maintained with puppetsync**
Expand Down Expand Up @@ -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'
}
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit a179d87

Please sign in to comment.