diff options
| author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-06-17 21:41:50 +0000 |
|---|---|---|
| committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-06-17 21:41:50 +0000 |
| commit | 46252b5bb858a1f2b87cc8646f3a59f935c58061 (patch) | |
| tree | 47d016a74967ae7fac18b711dcf7c8a998730d9d /lib/puppet/parser/resource | |
| parent | 6084e1a0efa2165e5cb10fff9ef0b06c1560f9c0 (diff) | |
| download | puppet-46252b5bb858a1f2b87cc8646f3a59f935c58061.tar.gz puppet-46252b5bb858a1f2b87cc8646f3a59f935c58061.tar.xz puppet-46252b5bb858a1f2b87cc8646f3a59f935c58061.zip | |
All rails and language tests now pass again. All of the rails tests should now be in the rails/ directory, and I have modified resource translation so that it always converts single-member arrays to singe values, which means the rails collection does not need to worry about it.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2597 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet/parser/resource')
| -rw-r--r-- | lib/puppet/parser/resource/param.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/parser/resource/param.rb b/lib/puppet/parser/resource/param.rb index c719a7fd8..4d95db46a 100644 --- a/lib/puppet/parser/resource/param.rb +++ b/lib/puppet/parser/resource/param.rb @@ -22,7 +22,7 @@ class Puppet::Parser::Resource::Param # Store a new parameter in a Rails db. def to_rails(db_resource) values = value.is_a?(Array) ? value : [value] - values.map! { |v| v.to_s } + values = values.map { |v| v.to_s } param_name = Puppet::Rails::ParamName.find_or_create_by_name(self.name.to_s) line_number = line_to_i() |
