diff options
author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-01-12 21:04:06 +0000 |
---|---|---|
committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-01-12 21:04:06 +0000 |
commit | f420135270ab66c7bad10ebc4b031ddac3b57659 (patch) | |
tree | 558fd25f3b4e9881c20a7123fbef5d5b715ca7ff /lib/puppet/parameter.rb | |
parent | 8aa331d7b31033b1a7594a0020e8462f646241cf (diff) | |
download | puppet-f420135270ab66c7bad10ebc4b031ddac3b57659.tar.gz puppet-f420135270ab66c7bad10ebc4b031ddac3b57659.tar.xz puppet-f420135270ab66c7bad10ebc4b031ddac3b57659.zip |
Converting transport format to YAML instead of Marshal, and caching the file in a YAML format, also. This required a significant rework of both Transportable classes. Lastly, I am also now caching the list of classes in a class file in /etc/puppet.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@816 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet/parameter.rb')
-rw-r--r-- | lib/puppet/parameter.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/puppet/parameter.rb b/lib/puppet/parameter.rb index 9d6a8504c..bb15b3320 100644 --- a/lib/puppet/parameter.rb +++ b/lib/puppet/parameter.rb @@ -150,7 +150,11 @@ module Puppet if self.is_a?(Puppet::State) return self.should else - return @value + if defined? @value + return @value + else + return nil + end end end |