summaryrefslogtreecommitdiffstats
path: root/lib/puppet/ssl/certificate.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/ssl/certificate.rb')
-rw-r--r--lib/puppet/ssl/certificate.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/puppet/ssl/certificate.rb b/lib/puppet/ssl/certificate.rb
index b6cba99a7..f9297f380 100644
--- a/lib/puppet/ssl/certificate.rb
+++ b/lib/puppet/ssl/certificate.rb
@@ -28,8 +28,7 @@ class Puppet::SSL::Certificate < Puppet::SSL::Base
end
def expiration
- # Our expiration is either that of the cache or the content, whichever comes first
- cache_expiration = @expiration
- [(content and content.not_after), cache_expiration].compact.sort.first
+ return nil unless content
+ return content.not_after
end
end