Sha256: ce365f132d3dd524b12cab103862fba105bc48ea1edf4be1852b72abcaeb2af6
Contents?: true
Size: 708 Bytes
Versions: 1
Compression:
Stored size: 708 Bytes
Contents
# frozen_string_literal: true module Facts module Solaris module SolarisZones class Zone FACT_NAME = 'solaris_zones.zones' def call_the_resolver results = Facter::Resolvers::SolarisZone.resolve(:zone) zones_fact = {} results&.each do |result| fact_value = { result[:name].to_sym => { brand: result[:brand], id: result[:id], ip_type: result[:ip_type], path: result[:path], status: result[:status] } } zones_fact.merge!(fact_value) end Facter::ResolvedFact.new(FACT_NAME, zones_fact) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
facter-4.0.9.pre | lib/facts/solaris/solaris_zones/zone.rb |