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

how do I check if a fact is defined?

$
0
0
Some of my modules are checking if a fact is defined, for example: if($::eyp_docker_iscontainer!=undef) { ... } In puppet 4.4.2 I get this warning: Warning: Undefined variable 'eyp_docker_iscontainer'; (file & line not available) how do I check if a fact is defined without getting this warning? thanks

Viewing all articles
Browse latest Browse all 6104

Trending Articles