rspec-puppet-facts 2.0.4 → 2.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/rspec-puppet-facts/version.rb +1 -1
- data/lib/rspec-puppet-facts.rb +2 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f8b388a56b77311997681ce48848b6e799c7943d8c2e3d296345e9f6587bc2ca
|
4
|
+
data.tar.gz: 33f5a3534d51478872c88b1e8ca74843820ff433f19e62932c9c7e58228f2234
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e0487293f8f9a2b4c9b8e45db12770f9002eddefe705e0697d68f8e74982910a4deb8f1c939d56953b0cb203980910ad6011527a131ca03828c3351336f6a83
|
7
|
+
data.tar.gz: 82229c84b00526195fa998d14047a84cbf7ba2782930928b8ba11fe7f646b793b76b5e3932ee33503d40cf2f1d59c97eb3a8269fe8f88e60baaaa2d926d0efcd
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [2.0.5](https://github.com/voxpupuli/rspec-puppet-facts/tree/2.0.5) (2022-04-22)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/voxpupuli/rspec-puppet-facts/compare/2.0.4...2.0.5)
|
6
|
+
|
7
|
+
**Fixed bugs:**
|
8
|
+
|
9
|
+
- fallback to lsb facts if structured facts are nil [\#140](https://github.com/voxpupuli/rspec-puppet-facts/pull/140) ([bastelfreak](https://github.com/bastelfreak))
|
10
|
+
|
3
11
|
## [2.0.4](https://github.com/voxpupuli/rspec-puppet-facts/tree/2.0.4) (2022-04-22)
|
4
12
|
|
5
13
|
[Full Changelog](https://github.com/voxpupuli/rspec-puppet-facts/compare/2.0.3...2.0.4)
|
data/lib/rspec-puppet-facts.rb
CHANGED
@@ -158,6 +158,8 @@ module RspecPuppetFacts
|
|
158
158
|
operatingsystemmajrelease = '2016'
|
159
159
|
elsif facts.dig(:os, 'release', 'major')
|
160
160
|
operatingsystemmajrelease = facts[:os]['release']['major']
|
161
|
+
elsif facts.dig(:os, 'distro', 'release', 'major')
|
162
|
+
operatingsystemmajrelease = facts[:os]['distro']['release']['major']
|
161
163
|
else
|
162
164
|
if facts[:operatingsystemmajrelease].nil?
|
163
165
|
operatingsystemmajrelease = facts[:operatingsystemrelease].split('.')[0]
|