Revision 80e8e5b2
Added by Ohad Levy over 12 years ago
- ID 80e8e5b21e71a8b38cbee47f8450720049478f63
lib/proxy_api.rb | ||
---|---|---|
response = parse(get("#{subnet}/#{mac}"))
|
||
attrs = response.merge(:network => subnet, :proxy => self)
|
||
if response.keys.grep(/Sun/i).empty?
|
||
Net::DHCP::SparcRecord.new attrs
|
||
else
|
||
Net::DHCP::Record.new attrs
|
||
else
|
||
Net::DHCP::SparcRecord.new attrs
|
||
end
|
||
rescue RestClient::ResourceNotFound
|
||
nil
|
Also available in: Unified diff
refs #1186, fixed wrong condition