diff options
author | Luke Kanies <luke@madstop.com> | 2008-04-17 21:51:14 -0500 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2008-04-17 21:51:14 -0500 |
commit | f7e0990fb436ce14e5f7ed295c004438d7735f95 (patch) | |
tree | 0738121f153946f348e891ba6a879e326b8c312a /lib | |
parent | 71db9b58349f75a54649d9b0d1fead8d01593f7a (diff) | |
download | puppet-f7e0990fb436ce14e5f7ed295c004438d7735f95.tar.gz puppet-f7e0990fb436ce14e5f7ed295c004438d7735f95.tar.xz puppet-f7e0990fb436ce14e5f7ed295c004438d7735f95.zip |
Setting the expiration date of certificate objects to the expiry of the actual
cert.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/puppet/ssl/certificate.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/puppet/ssl/certificate.rb b/lib/puppet/ssl/certificate.rb index 4887708f8..16af85d06 100644 --- a/lib/puppet/ssl/certificate.rb +++ b/lib/puppet/ssl/certificate.rb @@ -11,4 +11,9 @@ class Puppet::SSL::Certificate < Puppet::SSL::Base extend Puppet::Indirector indirects :certificate, :terminus_class => :file + + def expiration + return nil unless content + return content.not_after + end end |