lib/azure/virtual_network_management/serialization.rb in azure-0.7.0 vs lib/azure/virtual_network_management/serialization.rb in azure-0.7.1

- old
+ new

@@ -169,18 +169,18 @@ def self.dns_server_to_xml(xml, dns_servers, new_dns_servers) dns_list = {} dns_list.merge!(merge_dns(new_dns_servers)) dns_list.merge!(merge_dns(dns_servers)) - + dns_list.each do |name, ip_address| xml.DnsServer('name' => name, 'IPAddress' => ip_address) end end def self.merge_dns(dns_list) new_dns_list = {} - + dns_list.each do |dns| unless dns_list.include?(dns[:name]) new_dns_list.merge!(dns[:name] => dns[:ip_address]) end end