Project

General

Profile

« Previous | Next » 

Revision c7d9169d

Added by Chris Edester about 8 years ago

Fixes #14102 - Full location and organization passed as YAML to the ENC

View differences:

app/models/host/managed.rb
param["realm"] = realm.name unless realm.nil?
param["hostgroup"] = hostgroup.to_label unless hostgroup.nil?
if SETTINGS[:locations_enabled]
param["location"] = location.name unless location.blank?
param["location"] = location.title unless location.blank?
end
if SETTINGS[:organizations_enabled]
param["organization"] = organization.name unless organization.blank?
param["organization"] = organization.title unless organization.blank?
end
if SETTINGS[:unattended]
param["root_pw"] = root_pass unless (!operatingsystem.nil? && operatingsystem.password_hash == 'Base64')

Also available in: Unified diff