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

stdlib: ruby match? method doesn't work with PE 2019.0.0

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • None
    • None
    • stdlib
    • None
    • Puppet Enterprise 2019.0.0 on Ubuntu 18.04

    • Needs Assessment
    • Needs Assessment

    Description

      Basic Info
      Module Version: v7.0.0 or newer
      Puppet Version: PE 2019.0.0
      OS Name/Version: Ubuntu 18.04

      Getting this error from the stdlib pw_hash function on PE 2019.0.0:

      Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, undefined method `match?` for /\A[a-zA-Z0-9.\/]+\z/:Regexp
      Did you mean? match
      

      This commit appears to be the one that introduced the problem: https://github.com/puppetlabs/puppetlabs-stdlib/commit/a3e82714bf36d4e735052b2aa2cddd78701c2c38#diff-5bd8a0c5c15e94e584338d30d5423a8d5e239785a571b954355192630ae82d28

      Using stdlib v6.6.0 works fine. But https://forge.puppet.com/modules/puppetlabs/stdlib shows PE 2019.0.x as supported.

      Desired Behavior:

      No error.

      Actual Behavior:

      Error as above.

      Attachments

        Activity

          People

            Unassigned Unassigned
            kenyon Kenyon Ralph
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support