diff options
author | Markus Roberts <Markus@reality.com> | 2009-12-07 22:02:56 -0800 |
---|---|---|
committer | James Turnbull <james@lovedthanlost.net> | 2009-12-10 16:50:35 +1100 |
commit | 9ac1ed6d11d0fd272dddbfe7c1455ff56523c6be (patch) | |
tree | 5960d2ff580b02a1c0a8ca70875795f7c4e246eb /spec/unit/util/autoload.rb | |
parent | bd9e06fe0c0be0b361f5b5299365f1385f429616 (diff) | |
download | puppet-9ac1ed6d11d0fd272dddbfe7c1455ff56523c6be.tar.gz puppet-9ac1ed6d11d0fd272dddbfe7c1455ff56523c6be.tar.xz puppet-9ac1ed6d11d0fd272dddbfe7c1455ff56523c6be.zip |
Fix for #2863 (calling each on uninitialized tag list)
This is a fix for the core issue of #2863, calling each on a nil tag (instead
of empty) tag list for a resource with no tags, combined with various cleanup
in related code to forestall reintroduction of a similar bug.
* Replace the direct @var access with an initializing getter
* Rename it from @tags_hash to @tags_list since it's not a hash
* Do the same with the otherwise identical params setup.
* Eliminate the now-redundant external initialization for params.
* Remove the parameters method as it was never used and obviously
faulty (calling a non-existent get_params_hash method).
Diffstat (limited to 'spec/unit/util/autoload.rb')
0 files changed, 0 insertions, 0 deletions