Guest User

Untitled

a guest
Jan 19th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  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
Add Comment
Please, Sign In to add comment