summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDaniel Pittman <daniel@puppetlabs.com>2011-07-19 16:45:26 -0700
committerDaniel Pittman <daniel@puppetlabs.com>2011-07-20 14:49:47 -0700
commitcc311ad3dcb70547d7249e7aec9f545672c3e8e2 (patch)
tree80cd2942d5348348df55ae8e11c06dc4f5ca7d17 /lib
parent72abe6ce7192bba0b295a8a83483668d21050624 (diff)
downloadpuppet-cc311ad3dcb70547d7249e7aec9f545672c3e8e2.tar.gz
puppet-cc311ad3dcb70547d7249e7aec9f545672c3e8e2.tar.xz
puppet-cc311ad3dcb70547d7249e7aec9f545672c3e8e2.zip
maint: SSL::Inventory.serial should report missing names.
Our SSL inventory was able to find the serial number of a certificate by name, but was incapable of living up to the contract it offered, that it would actually report when a certificate was missing. Now it returns `nil`, which is the same case as "no inventory", if the certificate was not found, rather than accidentally returning the entire inventory data as raw strings. Reviewed-By: Pieter van de Bruggen <pieter@puppetlabs.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/ssl/inventory.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/puppet/ssl/inventory.rb b/lib/puppet/ssl/inventory.rb
index e094da100..c210fdc35 100644
--- a/lib/puppet/ssl/inventory.rb
+++ b/lib/puppet/ssl/inventory.rb
@@ -48,5 +48,7 @@ class Puppet::SSL::Inventory
return Integer($1)
end
+
+ return nil
end
end