Bug #759 ยป 795_check_if_mac_exists_before_downcase.patch
app/models/host.rb | ||
---|---|---|
def populateFieldsFromFacts
|
||
unless SETTINGS[:ignore_puppet_facts_for_provisioning]
|
||
self.mac = fv(:macaddress).downcase
|
||
self.mac = fv(:macaddress).downcase if fv(:macaddress)
|
||
self.ip = fv(:ipaddress) if ip.nil?
|
||
end
|
||
self.domain = Domain.find_or_create_by_name fv(:domain) unless fv(:domain).empty?
|