Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-5546

puppet-stdlib : uninitialized constant Puppet::Pops when using pw_hash

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • None
    • None
    • stdlib
    • None
    • puppet-stdlib: tags/4.19.0
      puppet: 3.4.3-1ubuntu1.1
      os: Ubuntu 14.04

    • MODULES Bug Template
    • Needs Assessment
    • Needs Assessment

    Description

      puppet-stdlib: tags/4.19.0
      puppet: 3.4.3-1ubuntu1.1
      os: Ubuntu 14.04

      When using pw_hash function from stdlib tag 4.19.0, we are facing this error:

      $ puppet apply test.pp
      Error: uninitialized constant Puppet::Pops at /tmp/test.pp:3 on node puppet.xxx
      Wrapped exception:
      uninitialized constant Puppet::Pops
      Error: uninitialized constant Puppet::Pops at /tmp/test.pp:3 on node puppet.xxx
      
      

      Sample code:

      $ cat test.pp 
      $var = pw_hash('tutu', 'SHA-512', 'toto')
      

      With stdlib 4.18.0, no problem.

      Problem seems to be introduced by this commit:
      https://github.com/puppetlabs/puppetlabs-stdlib/commit/42d4ea7af9197f77a3062727eb166c719ca6296a

      line 31:

      if arg.is_a? Puppet::Pops::Types::PSensitiveType::Sensitive
      

      seems wrong to me as this type does not exists.

      Attachments

        Activity

          People

            eric.putnam Eric Putnam
            arnaud.morin Arnaud Morin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support