From 0b44f59c7c611b5bf7fcbdc44e6dc590c5698e6b Mon Sep 17 00:00:00 2001 From: geemus Date: Mon, 4 Apr 2011 16:57:08 -0700 Subject: [PATCH] [dns|bluebox] add default ttl for zone --- lib/fog/dns/models/aws/record.rb | 2 +- lib/fog/dns/models/bluebox/zone.rb | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/fog/dns/models/aws/record.rb b/lib/fog/dns/models/aws/record.rb index dc746e3aa..299b5f692 100644 --- a/lib/fog/dns/models/aws/record.rb +++ b/lib/fog/dns/models/aws/record.rb @@ -16,7 +16,7 @@ module Fog attribute :created_at, :aliases => ['SubmittedAt'] def initialize(attributes={}) - self.ttl ||= 3600 + self.ttl ||= 3600 super end diff --git a/lib/fog/dns/models/bluebox/zone.rb b/lib/fog/dns/models/bluebox/zone.rb index 7fc5adda6..f7ee6c173 100644 --- a/lib/fog/dns/models/bluebox/zone.rb +++ b/lib/fog/dns/models/bluebox/zone.rb @@ -19,6 +19,7 @@ module Fog attribute :minimum def initialize(attributes = {}) + self.ttl ||= 3600 super(attributes) end