Skip to content

Commit 790eb1b

Browse files
bastelfreakekohl
andauthored
Update lib/rspec-puppet-facts.rb
Co-authored-by: Ewoud Kohl van Wijngaarden <[email protected]>
1 parent 1eecdb6 commit 790eb1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rspec-puppet-facts.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def on_supported_os_implementation(opts = {})
156156
operatingsystemmajrelease = facts[:operatingsystemrelease]
157157
elsif facts[:operatingsystem] == 'windows' && facts[:operatingsystemrelease].start_with?('10.0.')
158158
operatingsystemmajrelease = '2016'
159-
elsif !facts.dig(:os, 'release', 'major').nil?
159+
elsif facts.dig(:os, 'release', 'major')
160160
operatingsystemmajrelease = facts[:os]['release']['major']
161161
else
162162
if facts[:operatingsystemmajrelease].nil?

0 commit comments

Comments
 (0)