Skip to content

Commit

Permalink
Fixes #19295 - use new DHCP API
Browse files Browse the repository at this point in the history
  • Loading branch information
ares authored and dLobatog committed Apr 19, 2017
1 parent ea0d94e commit bf2c7da
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/proxy_api/dhcp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,7 @@ def set(subnet, args)
# [+mac+] : String in coloned sextuplet format
# Returns : Boolean status
def delete(subnet, mac)
parse super("#{subnet}/#{mac}")
rescue RestClient::ResourceNotFound
# entry doesn't exists anyway
return true
parse super("#{subnet}/mac/#{mac}")
rescue => e
raise ProxyException.new(url, e, N_("Unable to delete DHCP entry for %s"), mac)
end
Expand Down

0 comments on commit bf2c7da

Please sign in to comment.