Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tasks/update_node_pp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
def update_file(manifest, target_node)
path = '/etc/puppetlabs/code/environments/production/manifests/nodes'
_stdout, stderr, status = Open3.capture3("mkdir -p #{path}")
raise Puppet::Error, _("stderr: ' %{stderr}')" % { stderr: }) if status != 0
raise Puppet::Error, "stderr: '#{stderr}'" if !status.success?

Check failure on line 12 in tasks/update_node_pp.rb

View workflow job for this annotation

GitHub Actions / Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2)

Style/NegatedIf: Favor `unless` over `if` for negative conditions. (https://rubystyle.guide#unless-for-negatives)

site_path = File.join(path, "#{target_node}.pp")
if File.file?(site_path)
Expand Down
Loading