Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
None
Description
On Puppet 7.0 it's not possible to dig() into $facts using Facter 4.
root@base-buster-01-test:~# puppet -V |
7.0.0 |
root@base-buster-01-test:~# puppet apply -e 'dig($facts, "os", "family")' |
Error: Evaluation Error: Error while evaluating a Function Call, 'dig' parameter 'data' expects a value of type Undef or Collection, got Runtime (line: 1, column: 1) on node base-buster-01-test.local |
Facter doen't return a Hash or a Collection and that seems to be the root cause:
puppet apply -e 'notice(type($facts))' |
Notice: Scope(Class[main]): Runtime[ruby, 'Facter::FactCollection'] |