lib/facter/facts/solaris/hypervisors/ldom.rb in facter-4.0.44 vs lib/facter/facts/solaris/hypervisors/ldom.rb in facter-4.0.46

- old
+ new

@@ -9,9 +9,12 @@ def initialize @log = Facter::Log.new(self) end def call_the_resolver + chassis_serial = Facter::Resolvers::Solaris::Ldom.resolve(:chassis_serial) + return Facter::ResolvedFact.new(FACT_NAME, nil) if !chassis_serial || chassis_serial.empty? + fact_value = %i[ chassis_serial control_domain domain_name domain_uuid role_control role_io role_root role_service ].map! { |key| [key, Facter::Resolvers::Solaris::Ldom.resolve(key)] }.to_h