diff --git a/lib/fog/dns/powerdns/models/zones.rb b/lib/fog/dns/powerdns/models/zones.rb index 0721112..fb94054 100644 --- a/lib/fog/dns/powerdns/models/zones.rb +++ b/lib/fog/dns/powerdns/models/zones.rb @@ -9,16 +9,18 @@ class PowerDNS class Zones < Fog::Collection model Fog::DNS::PowerDNS::Zone + DEFAULT_SERVER = 'localhost' + # attribute :zone, :aliases => 'name' def all clear - data = service.list_zones.body + data = service.list_zones(DEFAULT_SERVER) load(data) end def get(zone) - data = service.get_zone(zone).body['zone'] + data = service.get_zone(DEFAULT_SERVER, zone) zone = new(data) zone rescue Fog::Service::NotFound