Project

General

Profile

Bug #759 ยป 795_check_if_mac_exists_before_downcase.patch

Alexander Rusa, 03/18/2011 08:36 AM

View differences:

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?
    (1-1/1)