1
0
Fork 0
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:
Dylan Egan 2011-09-01 15:01:25 -07:00
parent 93a52e2c02
commit c8afffc516

View file

@ -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],