Skip to content

Commit 50d877f

Browse files
committed
add null coaslece for file task with no settings override
1 parent b08cbb1 commit 50d877f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
### 2.4.0 (Next)
22
- Fix `rubocop-performance` inclusion warning.
33
- Improve recognition of Ruby support files.
4+
- Fix `file` task for no settings override usage.
45
- Minimum Ruby version increased to 3.0.
56

67
### 2.3.1

lib/puppet-check/tasks.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ def initialize
1616
namespace :puppetcheck do
1717
desc 'Execute Puppet-Check file checks'
1818
task :file, [:settings] do |_, wrapped_settings|
19-
PuppetCheck.new.run(wrapped_settings[:settings], Dir.glob('*'))
19+
wrapped_settings = wrapped_settings[:settings] || {}
20+
PuppetCheck.new.run(wrapped_settings, Dir.glob('*'))
2021
end
2122

2223
# rspec and rspec-puppet tasks

0 commit comments

Comments
 (0)