onering-report-plugins 0.0.24 → 0.0.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -51,8 +51,10 @@ Facter.add('hardwareid') do
51
51
  File.read('/etc/hardware.id').strip.chomp rescue nil
52
52
 
53
53
  # 2. value of kernel boot argument 'hardwareid' is checked
54
- elsif Facter.value('kernelarguments').is_a?(Hash) and not Facter.value('kernelarguments')['hardwareid'].nil?
55
- Facter.value('kernelarguments')['hardwareid']
54
+ elsif Facter.value('kernelarguments').is_a?(Hash) and
55
+ not Facter.value('kernelarguments')['hardwareid'].nil? and
56
+ not Facter.value('kernelarguments')['hardwareid'].to_s.strip.empty?
57
+ Facter.value('kernelarguments')['hardwareid'].to_s.strip
56
58
 
57
59
  # 3. calculate a new hardwareid from the system signature
58
60
  elsif Facter.value('signature')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onering-report-plugins
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.24
4
+ version: 0.0.25
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: