Actions
Bug #14264
closedGetting 500 when creating host through API and not specifying any interface attributes
Description
Getting following trace
2016-03-18T12:43:29 [app] [W] Action failed | NoMethodError: undefined method `[]=' for nil:NilClass | /home/ares/Projekty/Zdrojaky/foreman/app/controllers/api/v2/hosts_controller.rb:289:in `host_attributes' | /home/ares/Projekty/Zdrojaky/foreman/app/controllers/api/v2/hosts_controller.rb:98:in `create'
https://github.com/theforeman/foreman/commit/38d9333f8e82e45fc6771ea7740e6ea625b97d3f is not careful enough, also I think it should be rather fixed in host model than in API controller.
Updated by Dominic Cleal almost 9 years ago
- Related to Bug #14239: Creating a host via API fails with cryptic error when no primary interface is set explicitly added
Updated by The Foreman Bot almost 9 years ago
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/3346 added
Updated by Marek Hulán almost 9 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 308f611d9bb17173588a6f59c7a914b551923a7b.
Updated by Ohad Levy over 8 years ago
- Related to Bug #14516: Host::Base#domain_id= delegated to primary_interface.domain_id=, but primary_interface is nil added
Actions