diff options
| author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-03-04 19:26:27 +0000 |
|---|---|---|
| committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-03-04 19:26:27 +0000 |
| commit | e9e88b03c07fdcd1d689de4469a5f7b8702c3262 (patch) | |
| tree | 73639b0b40bad5725767d1819649054f1c84560f /lib/puppet/parameter.rb | |
| parent | 1099c4a5e093fc28216817edf3b6c28683de3105 (diff) | |
| download | puppet-e9e88b03c07fdcd1d689de4469a5f7b8702c3262.tar.gz puppet-e9e88b03c07fdcd1d689de4469a5f7b8702c3262.tar.xz puppet-e9e88b03c07fdcd1d689de4469a5f7b8702c3262.zip | |
Adding "links" parameter to files, and adding support for following or ignoring links to all of the states it can matter to. I still need to modify "source" so that it behaves correctly when managing links.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@983 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet/parameter.rb')
| -rw-r--r-- | lib/puppet/parameter.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/puppet/parameter.rb b/lib/puppet/parameter.rb index 4d91805bd..cee53afbf 100644 --- a/lib/puppet/parameter.rb +++ b/lib/puppet/parameter.rb @@ -244,7 +244,11 @@ module Puppet # This parameter isn't using defined values to do its work. return value end + + # We convert to a string and then a symbol so that things like + # booleans work as we expect. intern = value.to_s.intern + # If it's a valid value, always return it as a symbol. if self.class.values.include?(intern) retval = intern |
