Ticket #484: unknown_config_vars_02.patch
| File unknown_config_vars_02.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 … … 283 283 var = $1.intern 284 284 value = mungearg($2) 285 285 286 # JJM: Only warn if we don't know what this config var is. 287 # This prevents exceptions later on. 288 unless @config.include?(var) or metas.include?(var.to_s) 289 Puppet.warning "Discarded unknown configuration parameter %s" % var.inspect 290 next # Skip this line. 291 end 292 286 293 # Mmm, "special" attributes 287 294 if metas.include?(var.to_s) 288 295 unless values.include?(section)