lib/fog/aws/models/dns/zones.rb in fog-1.8.0 vs lib/fog/aws/models/dns/zones.rb in fog-1.9.0
- old
+ new
@@ -13,15 +13,15 @@
model Fog::DNS::AWS::Zone
def all(options = {})
options['marker'] ||= marker
options['maxitems'] ||= max_items
- data = connection.list_hosted_zones(options).body['HostedZones']
+ data = service.list_hosted_zones(options).body['HostedZones']
load(data)
end
def get(zone_id)
- data = connection.get_hosted_zone(zone_id).body
+ data = service.get_hosted_zone(zone_id).body
new(data)
rescue Excon::Errors::NotFound
nil
end