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:
parent
a5ce18ce6b
commit
463a7a819f
1 changed files with 3 additions and 3 deletions
|
@ -18,10 +18,10 @@ module Fog
|
||||||
def get(zone_name)
|
def get(zone_name)
|
||||||
data = service.get_domain_by_name(zone_name).body
|
data = service.get_domain_by_name(zone_name).body
|
||||||
|
|
||||||
if data["status"]
|
if data["status"] && !data["status"]
|
||||||
new(data)
|
|
||||||
else
|
|
||||||
nil
|
nil
|
||||||
|
else
|
||||||
|
new(data)
|
||||||
end
|
end
|
||||||
rescue Excon::Errors::NotFound
|
rescue Excon::Errors::NotFound
|
||||||
nil
|
nil
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue