diff options
Diffstat (limited to 'lib/puppet')
-rw-r--r-- | lib/puppet/ssl/base.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/puppet/ssl/base.rb b/lib/puppet/ssl/base.rb index 781ccb805..674330373 100644 --- a/lib/puppet/ssl/base.rb +++ b/lib/puppet/ssl/base.rb @@ -33,6 +33,12 @@ class Puppet::SSL::Base content.to_pem end + # Provide the full text of the thing we're dealing with. + def to_text + return "" unless content + content.to_text + end + private def wrapped_class |