Project

General

Profile

Bug #8784

undefined method `max_cpu_count'

Added by Ohad Levy about 8 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

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'

Associated revisions

Revision dba2e433 (diff)
Added by Dmitri Dolguikh about 8 years ago

fixes #8784: defines max_cpu_count for docker compute resource

Revision dba2e433 (diff)
Added by Dmitri Dolguikh about 8 years ago

fixes #8784: defines max_cpu_count for docker compute resource

History

#1 Updated by Anonymous about 8 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF