Sha256: b90a413396f7efa74b613961df21c657e9d0e5c0140cdd6584191236dca160aa
Contents?: true
Size: 479 Bytes
Versions: 56
Compression:
Stored size: 479 Bytes
Contents
# frozen_string_literal: true module Facts module Aix class MacaddressInterfaces FACT_NAME = 'macaddress_.*' TYPE = :legacy def call_the_resolver arr = [] interfaces = Facter::Resolvers::Aix::Networking.resolve(:interfaces) interfaces&.each do |interface_name, info| arr << Facter::ResolvedFact.new("macaddress_#{interface_name}", info[:mac], :legacy) if info[:mac] end arr end end end end
Version data entries
56 entries across 56 versions & 1 rubygems