diff options
author | Luke Kanies <luke@madstop.com> | 2009-07-15 16:03:44 -0700 |
---|---|---|
committer | James Turnbull <james@lovedthanlost.net> | 2009-07-24 09:49:05 +1000 |
commit | 935c46351f6f6730569c50fd0c59e8157486b827 (patch) | |
tree | 80642f5693f3cd3ef7ae42e84b1ec79a037d603e /ext/module_puppet | |
parent | d95b687045920c7d7fed5da1fe03b0feac86327a (diff) | |
download | puppet-935c46351f6f6730569c50fd0c59e8157486b827.tar.gz puppet-935c46351f6f6730569c50fd0c59e8157486b827.tar.xz puppet-935c46351f6f6730569c50fd0c59e8157486b827.zip |
Fixing #2403 - provider specificity is richer and better
We have extended the concept of provider specificity so it
now includes both specified defaults and class depth, so:
* We are much more likely to choose the correct provider;
e.g., 'init' will be chosen over 'base'
* We're much less likely to print this warning, because it's
only printed when provider specificities are equal which
is much rarer
lib/puppet/provider.rb | 4 ++--
lib/puppet/type.rb | 4 ++--
spec/unit/type.rb | 17 +++++++++++++++++
test/ral/manager/type.rb | 22 ----------------------
4 files changed, 21 insertions(+), 26 deletions(-)
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'ext/module_puppet')
0 files changed, 0 insertions, 0 deletions