Actions
Bug #4303
closedForeman fails to import reports after upgrade to 1.4
Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Database
Target version:
-
Description
Foreman fails to import reports after upgrade to 1.4 with the following message:
Started POST "/api/reports" for 193.174.240.222 at Mon Feb 10 10:06:25 +0100 2014
Processing by Api::V2::ReportsController#create as JSON
Parameters: {"apiv"=>"v2", "report"=>"[FILTERED]"}
undefined method `chefproxy_proxies' for #<Class:0x7f3e3fbf84a0> (NoMethodError)
We do not use Chef but Puppet instead so changing a line in /usr/share/foreman/app/controllers/concerns/foreman/controller/smart_proxy_auth.rb
- if !Setting[:restrict_registered_puppetmasters] or auth_smart_proxy(SmartProxy.puppet_proxies+SmartProxy.chefproxy_proxies, Setting[:require_ssl_puppetmasters])
if !Setting[:restrict_registered_puppetmasters] or auth_smart_proxy(SmartProxy.puppet_proxies, Setting[:require_ssl_puppetmasters])
Fixes the import Problem for me!
Actions