Revision 1b726d4f
Added by Greg Sutcliffe almost 10 years ago
lib/net/dhcp/record.rb | ||
---|---|---|
end
|
||
|
||
def == other
|
||
return false unless other.present?
|
||
if attrs[:hostname].blank?
|
||
# If we're converting an 'ad-hoc' lease created by a host booting outside of Foreman's knowledge,
|
||
# then :hostname will be blank on the incoming lease - if the ip/mac still match, then this
|
Also available in: Unified diff
Fixes #5941 - Handle nil comparison object in DHCP::Record.valid?