Discovery via fact import is broken for rails 5
Parsing facts fails in rails 5 due to the fact that the parameters are no longer a hash but rather `ActionController::Parameters`.
ERF42-4717 [Foreman::Exception]: Invalid facts, must be a Hash | /home/tbrisker/gits/foreman_discovery/app/models/host/discovered.rb:37:in `import_host' | /home/tbrisker/gits/foreman_discovery/app/controllers/api/v2/discovered_hosts_controller.rb:100:in `block in facts' | /home/tbrisker/foreman/app/models/concerns/foreman/thread_session.rb:93:in `as' | /home/tbrisker/foreman/app/models/concerns/foreman/thread_session.rb:99:in `as_anonymous_admin' | /home/tbrisker/gits/foreman_discovery/app/controllers/api/v2/discovered_hosts_controller.rb:99:in `facts' <snip>
#4 Updated by Anonymous about 3 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset foreman_discovery|a1a1cac5b394ebd6959540f529d1d9d3f94f1c87.