lib/xfrtuc.rb in xfrtuc-0.0.8 vs lib/xfrtuc.rb in xfrtuc-0.0.9
- old
+ new
@@ -167,10 +167,10 @@
days: days,
timezone: timezone }
sched_opts[:retain_weeks] = retain_weeks unless retain_weeks.nil?
sched_opts[:retain_months] = retain_months unless retain_months.nil?
- client.put("/schedules", sched_opts)
+ client.put("/schedules/#{URI.encode(name)}", sched_opts)
end
def delete(id)
client.delete("/schedules/#{URI.encode(id)}")
end