lib/puppet/indirector/certificate/rest.rb in puppet-0.25.5 vs lib/puppet/indirector/certificate/rest.rb in puppet-2.6.0

- old
+ new

@@ -1,15 +1,15 @@ require 'puppet/ssl/certificate' require 'puppet/indirector/rest' class Puppet::SSL::Certificate::Rest < Puppet::Indirector::REST - desc "Find and save certificates over HTTP via REST." + desc "Find and save certificates over HTTP via REST." - use_server_setting(:ca_server) - use_port_setting(:ca_port) + 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 + def find(request) + return nil unless result = super + result.name = request.key unless result.name == request.key + result + end end