Put everything in one line

Change-Id: I7d0361fd2990197dfe580f13a8d5e8d2f5b50dd9
This commit is contained in:
Alejandro Andreu 2016-10-17 17:50:31 +02:00
parent 7e9472001b
commit 23cbe99c50

View File

@ -24,8 +24,7 @@ module Puppet::Parser::Functions
result = []
# Check that all hashes have the same length
raise ArgumentError, 'All 3 arrays must have the same legth' unless
ip_addresses.length == remote_asns.length && ip_addresses.length == remote_nets.length
raise ArgumentError, 'All 3 arrays must have the same legth' unless ip_addresses.length == remote_asns.length && ip_addresses.length == remote_nets.length
ip_addresses.length.times do |k|
result.push({ 'ip_address': ip_addresses[k], 'remote_asn': remote_asns[k], 'remote_net': remote_nets[k] })