1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

changing handling of zone returns after testing that data was different on errors and success

This commit is contained in:
Joshua Gross 2014-01-23 18:27:35 -05:00
parent a5ce18ce6b
commit 463a7a819f

View file

@ -18,10 +18,10 @@ module Fog
def get(zone_name)
data = service.get_domain_by_name(zone_name).body
if data["status"]
new(data)
else
if data["status"] && !data["status"]
nil
else
new(data)
end
rescue Excon::Errors::NotFound
nil