diff options
author | Markus Roberts <Markus@reality.com> | 2009-08-06 22:26:27 -0700 |
---|---|---|
committer | James Turnbull <james@lovedthanlost.net> | 2009-08-14 08:49:30 +1000 |
commit | 75c6e4aed8bf60fbb1bd535fcdd5504f48ce9dde (patch) | |
tree | cc2c0b42a674b332a5b312f45664f8d36e2d9b75 /lib/puppet/parser/parser_support.rb | |
parent | b62d9668e04f40f2e3aa6c0f26dd26d1f75d8e22 (diff) | |
download | puppet-75c6e4aed8bf60fbb1bd535fcdd5504f48ce9dde.tar.gz puppet-75c6e4aed8bf60fbb1bd535fcdd5504f48ce9dde.tar.xz puppet-75c6e4aed8bf60fbb1bd535fcdd5504f48ce9dde.zip |
Fixes #2493
Added downcasing into find_or_load (which replaced fqfind) to get
back the old behaviour. Adjusted tests so that they would catch
the problem & confirmed that they fail without the downcasing.
Added tests to confirm the existance of #2493; improved
existing autoload tests (removed inter-test interactions)
and noted (with a TODO) that there was dead code in the
feature loading test; added analogus case sensitivity tests
where apropriate.
Diffstat (limited to 'lib/puppet/parser/parser_support.rb')
-rw-r--r-- | lib/puppet/parser/parser_support.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/puppet/parser/parser_support.rb b/lib/puppet/parser/parser_support.rb index 4e47cdef4..68cd3825c 100644 --- a/lib/puppet/parser/parser_support.rb +++ b/lib/puppet/parser/parser_support.rb @@ -114,6 +114,8 @@ class Puppet::Parser::Parser def find_or_load(namespace, name, type) method = "find_#{type}" + namespace = namespace.downcase + name = name.downcase fullname = (namespace + "::" + name).sub(/^::/, '') names_to_try = [fullname] |