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.
- data/lib/facter/onering_properties_id.rb +4 -2
- metadata +1 -1
@@ -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
|
55
|
-
|
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')
|