Project

General

Profile

« Previous | Next » 

Revision c8c66305

Added by Ohad Levy over 12 years ago

  • ID c8c6630529a0c8bee511dfe65f0de47ea2a050d8

fixes #1203 foreman might report 500 error when hostname is not defined

View differences:

app/models/orchestration/dhcp.rb
module InstanceMethods
def dhcp?
!subnet.nil? and subnet.dhcp?
!subnet.nil? and subnet.dhcp? and errors.empty?
end
def sp_dhcp?
!sp_subnet.nil? and sp_subnet.dhcp?
!sp_subnet.nil? and sp_subnet.dhcp? and errors.empty?
end
def dhcp_record
app/models/orchestration/dns.rb
module InstanceMethods
def dns?
!domain.nil? and !domain.proxy.nil?
!domain.nil? and !domain.proxy.nil? and errors.empty?
end
def dns_a_record

Also available in: Unified diff