Class: Facts::Aix::Hypervisors::Lpar
- Inherits:
-
Object
- Object
- Facts::Aix::Hypervisors::Lpar
- Defined in:
- lib/facter/facts/aix/hypervisors/lpar.rb
Constant Summary collapse
- FACT_NAME =
'hypervisors.lpar'
Instance Method Summary collapse
Instance Method Details
#call_the_resolver ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/facter/facts/aix/hypervisors/lpar.rb', line 9 def call_the_resolver lpar_partition_number = Facter::Resolvers::Lpar.resolve(:lpar_partition_number) return Facter::ResolvedFact.new(FACT_NAME, nil) unless lpar_partition_number&.positive? Facter::ResolvedFact.new(FACT_NAME, partition_number: lpar_partition_number, partition_name: Facter::Resolvers::Lpar.resolve(:lpar_partition_name)) end |