Actions
Bug #8784
closedundefined method `max_cpu_count'
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Description
when trying to edit a compute profile the following error is raised:
ActionView::Template::Error (undefined method `max_cpu_count' for #<ForemanDocker::Docker:0x0000000b041a40>): 7: <%= f.hidden_field :template if !new %> 8: 9: <div class='compute_profile'> 10: <%= selectable_f f, :cores, 1..compute_resource.max_cpu_count, { }, :class => "col-md-2", :label => _('Cores') %> 11: <%= selectable_f f, :memory, memory_options(compute_resource.max_memory), { }, :class => "col-md-2", :label => _('Memory') %> 12: </div> 13: <%= text_f f, :cmd, :label => _('Command') %> app/views/compute_attributes/_form.html.erb:9:in `block (2 levels) in _app_views_compute_attributes__form_html_erb___2863683561929270691_88362740' app/views/compute_attributes/_form.html.erb:8:in `block in _app_views_compute_attributes__form_html_erb___2863683561929270691_88362740' app/helpers/layout_helper.rb:268:in `form_for' app/views/compute_attributes/_form.html.erb:2:in `_app_views_compute_attributes__form_html_erb___2863683561929270691_88362740' app/views/compute_attributes/new.html.erb:3:in `_app_views_compute_attributes_new_html_erb__4266081539111488204_88674500' app/models/concerns/foreman/thread_session.rb:33:in `clear_thread' lib/middleware/catch_json_parse_errors.rb:9:in `call'
Updated by Anonymous about 10 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
Applied in changeset foreman-docker|dba2e433c0d40ca781e63e615c42552aac6804a7.
Actions