From 766aca47c1ba601d15f1e7182e83f2db1bf1569b Mon Sep 17 00:00:00 2001 From: Trae Robrock Date: Sun, 28 Jul 2013 13:20:37 -0700 Subject: [PATCH] Use the zone id for record creation --- lib/fog/dnsimple/models/dns/record.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fog/dnsimple/models/dns/record.rb b/lib/fog/dnsimple/models/dns/record.rb index 5f474d516..ddb23473b 100644 --- a/lib/fog/dnsimple/models/dns/record.rb +++ b/lib/fog/dnsimple/models/dns/record.rb @@ -41,7 +41,7 @@ module Fog # decide whether its a new record or update of an existing if id.nil? - data = service.create_record(zone.domain, name, type, value, options) + data = service.create_record(zone.id, name, type, value, options) else options[:name] = name if name options[:content] = value if value