Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 6104

Why is the variable value empty ?

$
0
0
Hi, we read hiera data in a variable. Within the loop we can see the value, when we exit the loop the variable sshvalues is empty. Why and how to fix ? $allkeys = hiera('rootkeys') $allkeys.each | $userid | { $sshvalues = $userid['pubkey'] notify {"SSHValue: ${sshvalues}":} --> Value is shown } notify { "All Keys: ${sshvalues}":} --> Value is empty Thanks a lot Sven

Viewing all articles
Browse latest Browse all 6104

Trending Articles