diff options
| author | Nick Lewis <nick@puppetlabs.com> | 2011-04-13 12:32:51 -0700 |
|---|---|---|
| committer | Nick Lewis <nick@puppetlabs.com> | 2011-04-13 12:32:51 -0700 |
| commit | f78ab095a50dc1f0c49cc8a8067b8f43623695b6 (patch) | |
| tree | 0a703428036179715ae4f66dd8f35c9724e06aac /lib | |
| parent | b2831e102f4cc57d6e0101f55e208695188d426a (diff) | |
| download | puppet-f78ab095a50dc1f0c49cc8a8067b8f43623695b6.tar.gz puppet-f78ab095a50dc1f0c49cc8a8067b8f43623695b6.tar.xz puppet-f78ab095a50dc1f0c49cc8a8067b8f43623695b6.zip | |
(#2150) Fix File const lookup when configuring routes
In some cases, this was incorrectly finding the new Puppet::Application::File
application rather than the top-level File class.
Reviewed-By: Jesse Wolfe
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/puppet/application.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/application.rb b/lib/puppet/application.rb index 4c5a5a967..e21fe635a 100644 --- a/lib/puppet/application.rb +++ b/lib/puppet/application.rb @@ -331,7 +331,7 @@ class Application def configure_indirector_routes route_file = Puppet[:route_file] - if File.exists?(route_file) + if ::File.exists?(route_file) routes = YAML.load_file(route_file) application_routes = routes[name.to_s] Puppet::Indirector.configure_routes(application_routes) if application_routes |
