Skip to content

When updating pip via puppet-python, an error occurs. #484

@pillarsdotnet

Description

@pillarsdotnet

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 6.4.2
  • Ruby: ruby 2.5.3p105 (2018-10-18 revision 65156) [x86_64-linux]
  • Distribution: CentOS Linux release 7.6.1810 (Core)
  • Module version: master

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

What are you seeing

$ grep -A5 python: data/app/pup.yaml
python::python_pips:
  pip:        { ensure: 'latest' }
  pre-commit: { ensure: 'latest' }
  setuptools: { ensure: 'latest' }
  wheel:      { ensure: 'latest' }

$ /opt/puppetlabs/bin/puppet agent -t
Info: Using configured environment 'dev'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Retrieving locales
Info: Loading facts
Error: Facter: error while resolving custom fact "pip_version": undefined method `[]' for nil:NilClass
Info: Caching catalog for cusppupent01.internal.cnngad.com
Info: Applying configuration version '1558463440'
Notice: System Reboot Required Because:
  audit => modified
Notice: Applied catalog in 25.40 seconds
$ which pre-commit
/usr/bin/which: no pre-commit in (/usr/local/openssl/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/opt/puppetlabs/bin:/opt/puppetlabs/puppet/bin)

What behaviour did you expect instead

Successful installation of pip, setuptools, wheel, and pre-commit

Output log

See above.

Any additional information you'd like to impart

Possibly related: pre-commit/pre-commit#1039

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