Actions
Bug #20970
closedDiscovery via fact import is broken for rails 5
Difficulty:
Triaged:
Description
Parsing facts fails in rails 5 due to the fact that the parameters are no longer a hash but rather `ActionController::Parameters`.
Full stacktrace:
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>
Updated by Tomer Brisker about 7 years ago
- Related to Tracker #15715: Rails 5.0 upgrade tasks added
Updated by The Foreman Bot about 7 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman_discovery/pull/375 added
Updated by Tomer Brisker about 7 years ago
- Related to Refactor #20952: Replace Hash-related methods called on AC::Parameters added
Updated by Anonymous about 7 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset foreman_discovery|a1a1cac5b394ebd6959540f529d1d9d3f94f1c87.
Actions