Skip to content

Commit

Permalink
Update lib/rspec-puppet-facts.rb
Browse files Browse the repository at this point in the history
Co-authored-by: Ewoud Kohl van Wijngaarden <ewoud@kohlvanwijngaarden.nl>
  • Loading branch information
bastelfreak and ekohl committed Apr 22, 2022
1 parent 1eecdb6 commit 790eb1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rspec-puppet-facts.rb
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def on_supported_os_implementation(opts = {})
operatingsystemmajrelease = facts[:operatingsystemrelease]
elsif facts[:operatingsystem] == 'windows' && facts[:operatingsystemrelease].start_with?('10.0.')
operatingsystemmajrelease = '2016'
elsif !facts.dig(:os, 'release', 'major').nil?
elsif facts.dig(:os, 'release', 'major')
operatingsystemmajrelease = facts[:os]['release']['major']
else
if facts[:operatingsystemmajrelease].nil?
Expand Down

0 comments on commit 790eb1b

Please sign in to comment.