On 03/25/2013 04:06 PM, Felix Frank wrote:
> Speficially, you are probably looking for the each_pair method:
Scratch that - just noticed it's synonymous with each. That's fine then.
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe
Hi,
On 03/25/2013 03:53 PM, Andrew E. wrote:
> What is my mistake?
Speficially, you are probably looking for the each_pair method:
http://ruby-doc.org/core-1.8.7/Hash.html#method-i-each_pair
Also, I'd advice to never use generic variable names like kk or vv.
Your hash is "index => options"? Why
Hi all.
I'm newbie.
Help me, please.
I write Puppet function
Piece of code :
n_if={}
over_if = arguments[1]
over_if.each do |kk,vv|
weth={}
puts kk,vv,weth
weth = arguments[0]
weth['in_vlan'] = vv['in_vlan']