Getting 500 when creating host through API and not specifying any interface attributes
Fixed in Releases:
Found in Releases:
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.