From 7d817875d45d145bf79e292ddfd764415aa7a3d6 Mon Sep 17 00:00:00 2001 From: Joshua Gross Date: Thu, 23 Jan 2014 18:07:05 -0500 Subject: [PATCH] when a zone doesn't exist return nil for rage4 --- lib/fog/rage4/models/dns/records.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fog/rage4/models/dns/records.rb b/lib/fog/rage4/models/dns/records.rb index e2f02910c..a35c71685 100644 --- a/lib/fog/rage4/models/dns/records.rb +++ b/lib/fog/rage4/models/dns/records.rb @@ -24,7 +24,7 @@ module Fog if !data.empty? new(data.first) else - new() + nil end rescue Excon::Errors::NotFound nil