Revision 4e08a71c
Added by Shlomi Zadok over 8 years ago
app/models/host/managed.rb | ||
---|---|---|
params
|
||
end
|
||
|
||
def host_params_objects
|
||
# Host parameters should always be first for the uniq order
|
||
(host_parameters + host_inherited_params_objects.reverse!).uniq {|param| param.name}
|
||
end
|
||
|
||
# JSON is auto-parsed by the API, so these should be in the right format
|
||
def self.import_host_and_facts(hostname, facts, certname = nil, proxy_id = nil)
|
||
raise(::Foreman::Exception.new("Invalid Facts, must be a Hash")) unless facts.is_a?(Hash)
|
Also available in: Unified diff
Fixes #12132 - [API] Host all parameters should include host parameters