diff options
| author | Luke Kanies <luke@madstop.com> | 2009-09-18 12:09:44 -0700 |
|---|---|---|
| committer | James Turnbull <james@lovedthanlost.net> | 2009-09-22 09:23:38 +1000 |
| commit | a1d3b04296babc42b6a00956508c86c18e2b39bc (patch) | |
| tree | c26a9dc9cbe5b2a12b568f569dfa1aeee6328106 /lib | |
| parent | 8987509aa171101fc64d5166851e866752f41d8c (diff) | |
Fixing #2617 - use the cert name as specified
This allows us to search for a cert, and we use the searched-for
term as the cert name (for the wrapper, not the actual cert object),
rather than the real cert name.
This allows us to use symbolic names like 'ca', as we're currently doing.
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/puppet/indirector/certificate/rest.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/puppet/indirector/certificate/rest.rb b/lib/puppet/indirector/certificate/rest.rb index 599983030..6f47c25ba 100644 --- a/lib/puppet/indirector/certificate/rest.rb +++ b/lib/puppet/indirector/certificate/rest.rb @@ -6,4 +6,10 @@ class Puppet::SSL::Certificate::Rest < Puppet::Indirector::REST use_server_setting(:ca_server) use_port_setting(:ca_port) + + def find(request) + return nil unless result = super + result.name = request.key unless result.name == request.key + result + end end |
