lib/fog/azurerm/models/dns/zones.rb in fog-azure-rm-0.0.4 vs lib/fog/azurerm/models/dns/zones.rb in fog-azure-rm-0.0.5

- old
+ new

@@ -15,11 +15,13 @@ zones << Fog::DNS::AzureRM::Zone.parse(z) end load(zones) end - def get(resource_group, identity) - all.find { |f| f.name == identity && f.resource_group == resource_group } + def get(resource_group, name) + zone = service.get_zone(resource_group, name) + zone_obj = Fog::DNS::AzureRM::Zone.new(service: service) + zone_obj.merge_attributes(Fog::DNS::AzureRM::Zone.parse(zone)) end def check_for_zone(resource_group, name) service.check_for_zone(resource_group, name) end