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