Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/lib/proxy/dhcp/server/native_ms.rb b/lib/proxy/dhcp/server/native_ms.rb
- index a442002..a55069d 100644
- --- a/lib/proxy/dhcp/server/native_ms.rb
- +++ b/lib/proxy/dhcp/server/native_ms.rb
- @@ -43,9 +43,9 @@ module Proxy::DHCP
- msg = "set value for #{key}"
- begin
- execute "scope #{record.subnet.network} set reservedoptionvalue #{record.ip} #{SUNW[attr][:code]} #{SUNW[attr][:kind]} vendor=#{alternate_vendor_name || vendor} #{value}", msg, true
- - rescue Proxy::DHCP::Error => e
- + rescue
- alternate_vendor_name = find_or_create_vendor_name vendor, e
- - execute "scope #{record.subnet.network} set reservedoptionvalue #{ip} #{SUNW[attr][:code]} #{SUNW[attr][:kind]} vendor=#{alternate_vendor_name || vendor} #{value}", msg, true
- + retry
- end
- else
Add Comment
Please, Sign In to add comment