lib/fog/azurerm/models/dns/zone.rb in fog-azure-rm-0.0.4 vs lib/fog/azurerm/models/dns/zone.rb in fog-azure-rm-0.0.5
- old
+ new
@@ -29,10 +29,10 @@
end
def save
requires :name
requires :resource_group
- zone = service.create_zone(resource_group, name)
+ zone = service.create_or_update_zone(resource_group, name)
merge_attributes(Fog::DNS::AzureRM::Zone.parse(zone))
end
def destroy
service.delete_zone(resource_group, name)