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)
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue