lib/infoblox/resource/range.rb in infoblox-0.3.3 vs lib/infoblox/resource/range.rb in infoblox-0.4.0
- old
+ new
@@ -14,11 +14,11 @@
# You may optionally specify how many IPs you want (num) and which ones to
# exclude from consideration (array of IPv4 address strings).
#
def next_available_ip(num=1, exclude=[])
post_body = {
- num: num.to_i,
- exclude: exclude
+ :num => num.to_i,
+ :exclude => exclude
}
JSON.parse(connection.post(resource_uri + "?_function=next_available_ip", post_body).body)["ips"]
end
end