Project

General

Profile

Feature #1744 ยป certificates.patch

Greg Sutcliffe, 07/11/2012 10:08 AM

View differences:

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
    (1-1/1)