Project

General

Profile

« Previous | Next » 

Revision 1b726d4f

Added by Greg Sutcliffe almost 10 years ago

Fixes #5941 - Handle nil comparison object in DHCP::Record.valid?

View differences:

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