Project

General

Profile

« Previous | Next » 

Revision 10ac97b0

Added by Joseph Magen about 10 years ago

fixes #4250 - API v2 - add compute profiles

View differences:

app/models/host/managed.rb
:allow_blank => true, :allow_nil => true
validates :provision_method, :inclusion => {:in => PROVISION_METHODS, :message => N_('is unknown')}, :if => Proc.new {|host| host.managed?}
validate :provision_method_in_capabilities
after_validation :set_compute_attributes
before_validation :set_compute_attributes, :only => :create
end
before_validation :set_hostgroup_defaults, :set_ip_address, :normalize_addresses, :normalize_hostname, :force_lookup_value_matcher

Also available in: Unified diff