lib/facter/facts/solaris/hypervisors/ldom.rb in facter-4.0.52 vs lib/facter/facts/solaris/hypervisors/ldom.rb in facter-4.1.0
- old
+ new
@@ -15,10 +15,10 @@
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
+ ].map! { |key| [key, Facter::Utils.try_to_bool(Facter::Resolvers::Solaris::Ldom.resolve(key))] }.to_h
Facter::ResolvedFact.new(FACT_NAME, fact_value)
end
end
end