daily pastebin goal
6%
SHARE
TWEET

Untitled

a guest Jan 19th, 2019 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. diff --git a/lib/proxy/dhcp/server/native_ms.rb b/lib/proxy/dhcp/server/native_ms.rb
  2. index a442002..a55069d 100644
  3. --- a/lib/proxy/dhcp/server/native_ms.rb
  4. +++ b/lib/proxy/dhcp/server/native_ms.rb
  5. @@ -43,9 +43,9 @@ module Proxy::DHCP
  6.            msg = "set value for #{key}"
  7.            begin
  8.              execute "scope #{record.subnet.network} set reservedoptionvalue #{record.ip} #{SUNW[attr][:code]} #{SUNW[attr][:kind]} vendor=#{alternate_vendor_name || vendor} #{value}", msg, true
  9. -          rescue Proxy::DHCP::Error => e
  10. +          rescue
  11.              alternate_vendor_name = find_or_create_vendor_name vendor, e
  12. -            execute "scope #{record.subnet.network} set reservedoptionvalue #{ip} #{SUNW[attr][:code]} #{SUNW[attr][:kind]} vendor=#{alternate_vendor_name || vendor} #{value}", msg, true
  13. +            retry
  14.            end
  15.          else
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top