Hi, On 03/12/2014 05:11 PM, Kenton Brede wrote: > $users_hosts = hiera("${::hostname}_users") > > Works great until there are no users for "${::hostname}_users." > > How can I make this work when "${::hostname}_users" is empty?
I don't fully understand you problem, but I believe you want to pass a default value to your hiera call so that it will work in the absence of the key. E.g. $users_hosts = hiera("${::hostname}_users", []) HTH, Felix -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/53208903.8090307%40alumni.tu-berlin.de. For more options, visit https://groups.google.com/d/optout.