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/application/certificate.rb
require 'puppet/application/indirection_base'

class Puppet::Application::Certificate < Puppet::Application::IndirectionBase
  def setup
    location = Puppet::SSL::Host.ca_location
    if location == :local && !Puppet::SSL::CertificateAuthority.ca?
      # I'd prefer if this could be dealt with differently; ideally, run_mode should be set as
      #  part of a class definition, and should not be modifiable beyond that.  This is one of
      #  the cases where that isn't currently possible.
      Puppet.settings.preferred_run_mode = "master"
    end

    super
  end
end