Hi,

the puppetlabs-stdlib module introduces a has_key() function to puppet.

HTH,
Felix

On 03/10/2014 09:42 PM, Steve Neuharth wrote:
> The trouble is that it totally fails if even the top or intermediate
> levels of the hash don't exist. I've tried using "if
> $web_conf[$::client][$::env][$name]['server_name'] != undef", tried "if
> undef($web_conf[$::client][$::env][$name]['server_name'])" etc.
> 
> what's the correct way to do this?

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/534E7DDB.4020405%40alumni.tu-berlin.de.
For more options, visit https://groups.google.com/d/optout.

Reply via email to