lib/facter/resolvers/aio_agent_version.rb in facter-4.0.46 vs lib/facter/resolvers/aio_agent_version.rb in facter-4.0.47
- old
+ new
@@ -11,10 +11,10 @@
def post_resolve(fact_name)
@fact_list.fetch(fact_name) { read_agent_version }
end
def read_agent_version
- aio_agent_version = Util::FileHelper.safe_read('/opt/puppetlabs/puppet/VERSION', nil)&.chomp
+ aio_agent_version = Facter::Util::FileHelper.safe_read('/opt/puppetlabs/puppet/VERSION', nil)&.chomp
aio_agent_version = aio_agent_version&.match(/^\d+\.\d+\.\d+(\.\d+){0,2}/)&.to_s
@fact_list[:aio_agent_version] = aio_agent_version
end
end
end