Feature #1744 ยป certificates.patch
app/controllers/smart_proxies/puppetca_controller.rb | ||
---|---|---|
begin
|
||
if params[:state].blank?
|
||
certificates = SmartProxies::PuppetCA.all @proxy
|
||
# Only return pending/revoked certs if the user actually wants to see them
|
||
certificates = SmartProxies::PuppetCA.all(@proxy).select {|c| c.state == "valid"}
|
||
else
|
||
certificates = SmartProxies::PuppetCA.find_by_state @proxy, params[:state]
|
||
end
|