HEX
Server: Apache
System: Linux sg241.singhost.net 2.6.32-896.16.1.lve1.4.51.el6.x86_64 #1 SMP Wed Jan 17 13:19:23 EST 2018 x86_64
User: honghock (909)
PHP: 8.0.30
Disabled: passthru,system,shell_exec,show_source,exec,popen,proc_open
Upload Files
File: //usr/lib/ruby/site_ruby/1.8/puppet/indirector/facts/inventory_service.rb
require 'puppet/node/facts'
require 'puppet/indirector/rest'

class Puppet::Node::Facts::InventoryService < Puppet::Indirector::REST
  desc "Find and save facts about nodes using a remote inventory service."
  use_server_setting(:inventory_server)
  use_port_setting(:inventory_port)

  # We don't want failing to upload to the inventory service to cause any
  # failures, so we just suppress them and warn.
  def save(request)
    begin
      super
      true
    rescue => e
      Puppet.warning "Could not upload facts for #{request.key} to inventory service: #{e.to_s}"
      false
    end
  end
end