Revision 90ff2a3a
Added by Dmitri Dolguikh about 10 years ago
app/models/concerns/orchestration/dns.rb | ||
---|---|---|
|
||
status = true
|
||
status = failure(_("DNS A Records %s already exists") % dns_a_record.conflicts.to_sentence, nil, :conflict) if dns? and dns_a_record and dns_a_record.conflicting?
|
||
status &= failure(_("DNS PTR Records %s already exists") % dns_ptr_record.conflicts.to_sentence, nil, :conflict) if reverse_dns? and dns_ptr_record and dns_ptr_record.conflicting?
|
||
status
|
||
status = failure(_("DNS PTR Records %s already exists") % dns_ptr_record.conflicts.to_sentence, nil, :conflict) if reverse_dns? and dns_ptr_record and dns_ptr_record.conflicting?
|
||
not status #failure method returns 'false'
|
||
end
|
||
|
||
end
|
Also available in: Unified diff
fixes #4381: dns records are being update after changes to host when dhcp is also present