-
-
Notifications
You must be signed in to change notification settings - Fork 375
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Evaluation Error: Operator '[]' is not applicable to an Undef Value. #571
Comments
Hmm, I seem to remember that if you install the package |
Hi Kenyon. It is a CentOS server but the agent is running on Debian. I checked APT and lsb-base, lsb-compat, and lsb-release are installed. I did get codename and distro from lsb_release with the following options:
Albeit, that doesn't help the facter results. |
I exported facter values to test, and still puppet runs fail with the same error:
|
Well, the
That fact should exist. |
Hmm still that command returns nothing on my setup. All I want is for the python module to install a module with pip in a target directory within a virtualenv. I am using the example hiera code:
and I get the error I posted. |
Unfortunately, the version of facter shipped as part of Debian 9 is really old (and puppet itself is only version 4.8). Puppet Inc was shipping facter 3 from puppet 4.2 onwards, but in Debian 9 it's only version 2.4.6. When we dropped support for Puppet 4 in January 2019, we also decided to stop supporting facter 2. Are you able to install puppet from the puppetlabs apt repositories instead? |
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
Use example code to test virtualenv pip install
What are you seeing
What behaviour did you expect instead
For the example to work.
Output log
Any additional information you'd like to impart
From the host
facter os
returns results whereasdistro
andcodename
do not.The text was updated successfully, but these errors were encountered: