mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
raise a NotFound if not found.
This commit is contained in:
parent
93a52e2c02
commit
c8afffc516
1 changed files with 2 additions and 1 deletions
|
@ -20,7 +20,8 @@ module Fog
|
||||||
|
|
||||||
class Mock
|
class Mock
|
||||||
def get_zone(options = {})
|
def get_zone(options = {})
|
||||||
if options['zone'] && zone = self.data[:zones][options['zone']]
|
if options['zone']
|
||||||
|
raise Fog::DNS::Dynect::NotFound unless zone = self.data[:zones][options['zone']]
|
||||||
data = {
|
data = {
|
||||||
"zone_type" => zone[:zone_type],
|
"zone_type" => zone[:zone_type],
|
||||||
"serial_style" => zone[:serial_style],
|
"serial_style" => zone[:serial_style],
|
||||||
|
|
Loading…
Reference in a new issue