Revision c8c66305
Added by Ohad Levy over 12 years ago
- ID c8c6630529a0c8bee511dfe65f0de47ea2a050d8
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
|
Also available in: Unified diff
fixes #1203 foreman might report 500 error when hostname is not defined