|
IIRC this came up during a fundamentals training. It was a suggestion from one of the students.
If one is using facter stand alone and needs the check whether or not a fact exists or not, they could check the output of facter (as opposed to the exit code as being discussed here).
I'm having a hard time imagining the edge case where someone needs to know if a fact exists but is empty (e.g. {fluffy => { bunny => "" }
}) versus does not exist { fluffy => { kitten => "" }} )
|