Sha256: 84af601293ee6380c86bcf404a591b69998566adbf92a6d8f0b213bdb10a1165

Contents?: true

Size: 420 Bytes

Versions: 2

Compression:

Stored size: 420 Bytes

Contents

# frozen_string_literal: true

module Facter
  module Aix
    class HypervisorsWpar
      FACT_NAME = 'hypervisors.wpar'

      def call_the_resolver
        wpar_key = Resolvers::Wpar.resolve(:wpar_key)
        return ResolvedFact.new(FACT_NAME, nil) unless wpar_key&.positive?

        ResolvedFact.new(FACT_NAME, key: wpar_key, configured_id: Resolvers::Wpar.resolve(:wpar_configured_id))
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
facter-4.0.8.pre lib/facts/aix/hypervisors/wpar.rb
facter-4.0.7.pre lib/facts/aix/hypervisors/wpar.rb