Skip to content

Evaluation Error: Operator '[]' is not applicable to an Undef Value. #571

Open
@n1md4

Description

@n1md4

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 6.17.0
  • Ruby: 2.5.5
  • Distribution: centos
  • Module version:4.1.1

How to reproduce (e.g Puppet code you use)

Use example code to test virtualenv pip install

What are you seeing

Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Operator '[]' is not applicable to an Undef Value. (file: ... python/manifests/pyvenv.pp, line: 49, column: 12) (file: ... python/manifests/init.pp, line: 95) on node host.domain

What behaviour did you expect instead

For the example to work.

Output log

Any additional information you'd like to impart

python/manifests/pyvenv.pp, line: 49
      case $facts['os']['distro']['codename'] {
python/manifests/init.pp, line: 95
  create_resources('python::pyvenv', $python_pyvenvs)

From the host facter os returns results whereas distro and codename do not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions