I have added these two new attributes to the hypervisor model (hyperpass, hyperuser) and created the db migration file.
However when I run foreman I get the following error:
/opt/foreman3/vendor/plugins/searchlogic/lib/searchlogic/named_scopes/conditions.rb:81:in method_missing': undefined local variable or method
hyperuser' for #<Class:0x7f3abbc13868> (NameError)
from /opt/foreman3/vendor/plugins/searchlogic/lib/searchlogic/named_scopes/association_conditions.rb:19:in `method_missing'
I am not sure what I am missing but it looks like it has something to do with the search functionality. Any ideas?
Hypervisor.rb
class Hypervisor < ActiveRecord::Base attr_accessible :name, :uri, :kind, hyperuser, hyperpass
attr_reader :host validates_presence_of :name, :uri, :kind
validates_uniqueness_of :name, :uri
before_save :try_to_connect
default_scope :order => 'LOWER(hypervisors.name)'
Corey Osman
corey@logicminds.biz
Green I.T and Datacenter Automation Specialist