puppet-agent 1.8 - facter 3.5: howto check for an undefined fact ?
Hi Guys
Want to be able to check if a disk is attached (fwiw it's normally on real hw, not VM in this case)
I always get
Evaluation Error: Operator '[]' is not applicable to an Undef Value
When using eg
if ( defined( $facts['disks']['sdb']['model'] ) )
or similar.
does anyone now how to go about this?
Thx
Chris