Project

General

Profile

Actions

Bug #8784

closed

undefined method `max_cpu_count'

Added by Ohad Levy over 9 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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'
Actions #1

Updated by Anonymous over 9 years ago

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

Also available in: Atom PDF