Ticket #484: unknown_config_vars.patch
| File unknown_config_vars.patch, 1.1 kB (added by puppet, 2 years ago) |
|---|
-
config.rb
old new 39 39 param = symbolize(param) 40 40 unless @config.include?(param) 41 41 raise Puppet::Error, 42 " Unknown configuration parameter %s" % param.inspect42 "Attempt to assign a value to unknown configuration parameter %s" % param.inspect 43 43 end 44 44 unless @order.include?(param) 45 45 @order << param … … 300 300 next 301 301 end 302 302 303 # JJM: Only warn if we don't know what this config var is. 304 # This prevents exceptions later on. 305 unless @config.include?(var) 306 Puppet.warning "Discarded unknown configuration parameter %s" % var.inspect 307 next # Skip this line. 308 end 309 303 310 # Don't override set parameters, since the file is parsed 304 311 # after cli arguments are handled. 305 312 unless @config.include?(var) and @config[var].setbycli