lib/facts/solaris/networking/hostname.rb in facter-4.0.8.pre vs lib/facts/solaris/networking/hostname.rb in facter-4.0.9.pre

- old
+ new

@@ -1,15 +1,17 @@ # frozen_string_literal: true -module Facter +module Facts module Solaris - class NetworkingHostname - FACT_NAME = 'networking.hostname' - ALIASES = 'hostname' + module Networking + class Hostname + FACT_NAME = 'networking.hostname' + ALIASES = 'hostname' - def call_the_resolver - fact_value = Facter::Resolvers::Hostname.resolve(:hostname) - [ResolvedFact.new(FACT_NAME, fact_value), ResolvedFact.new(ALIASES, fact_value, :legacy)] + def call_the_resolver + fact_value = Facter::Resolvers::Hostname.resolve(:hostname) + [Facter::ResolvedFact.new(FACT_NAME, fact_value), Facter::ResolvedFact.new(ALIASES, fact_value, :legacy)] + end end end end end