Sha256: 5e8a0d0e464790c33a17565d005831f3e2a54d3eba998422f1f472a7ba72e5c4

Contents?: true

Size: 446 Bytes

Versions: 2

Compression:

Stored size: 446 Bytes

Contents

# frozen_string_literal: true

module Facter
  module Windows
    class Network6Interfaces
      FACT_NAME = 'network6_.*'

      def call_the_resolver
        arr = []
        interfaces = Resolvers::Networking.resolve(:interfaces)
        interfaces&.each do |interface_name, info|
          arr << ResolvedFact.new("network6_#{interface_name}", info[:network6], :legacy) if info[:network6]
        end

        arr
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
facter-4.0.8.pre lib/facts/windows/network6_interfaces.rb
facter-4.0.7.pre lib/facts/windows/network6_interfaces.rb