Revision 455f5d2b
Added by Paul Kelly about 13 years ago
- ID 455f5d2ba487abc6fc7d52c8ce164f0a0834bc2e
app/models/subnet.rb | ||
---|---|---|
end
|
||
|
||
def unused_ip
|
||
if d=dhcp_proxy
|
||
if d = dhcp_proxy
|
||
return d.unused_ip(network)["ip"]
|
||
else
|
||
nil
|
||
end
|
||
rescue => e
|
||
logger.warn "failed to fetch a free IP from our proxy: #{e}"
|
||
logger.warn "Failed to fetch a free IP from our proxy: #{e}"
|
||
nil
|
||
end
|
||
|
Also available in: Unified diff
Fixes #544 - Foreman connects using an ssl certificate
Signed-off-by: Paul Kelly <paul.ian.kelly@googlemail.com>