diff options
| author | Matt Robinson <matt@puppetlabs.com> | 2010-09-28 12:32:40 -0700 |
|---|---|---|
| committer | Markus Roberts <Markus@reality.com> | 2010-09-28 19:42:05 -0700 |
| commit | 574812ef00e6681fce88bd1e66bbc07e7ade4b41 (patch) | |
| tree | 7ceae2a870586bcb7148a021ab34aa0129aac396 /lib/puppet/parser | |
| parent | 68947e7f31b6145bf50935ffcd5c10f1c6609eb4 (diff) | |
| download | puppet-574812ef00e6681fce88bd1e66bbc07e7ade4b41.tar.gz puppet-574812ef00e6681fce88bd1e66bbc07e7ade4b41.tar.xz puppet-574812ef00e6681fce88bd1e66bbc07e7ade4b41.zip | |
(#4860) Add regression tests that would have caught bad params method
This is another case where our test objects were overly mocked so they
didn't alert us to problems with our implementation.
Diffstat (limited to 'lib/puppet/parser')
| -rw-r--r-- | lib/puppet/parser/ast/resource.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/puppet/parser/ast/resource.rb b/lib/puppet/parser/ast/resource.rb index 0c58538d5..6909c85c2 100644 --- a/lib/puppet/parser/ast/resource.rb +++ b/lib/puppet/parser/ast/resource.rb @@ -46,7 +46,6 @@ class Resource < AST::ResourceReference :virtual => virt, :source => scope.source, :scope => scope, - :strict => true ) @@ -64,12 +63,9 @@ class Resource < AST::ResourceReference if params.is_a?(AST::ASTArray) @parameters = params else - - @parameters = AST::ASTArray.new( - + @parameters = AST::ASTArray.new( :line => params.line, :file => params.file, - :children => [params] ) end |
