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

puppetlabs/stdlib : Error when using v4.23.0 with ruby 1.8.7

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • None
    • None
    • stdlib
    • None
    • Needs Assessment
    • Needs Assessment

    Description

      Basic Info
      Module Version: 4.23.0
      Puppet Version: 3.8.7
      OS Name/Version: RHEL 6.9

      Getting an error when ruby is trying to parse new hash syntax in ruby lib files:

      ```
      Puppet::Error:
      Could not autoload puppet/parser/functions/ensure_resource: /home/travis/build/StackStorm/puppet-st2/spec/fixtures/modules/stdlib/lib/puppet/parser/functions/ensure_resource.rb:5: syntax error, unexpected ':', expecting ')'
      type: :statement,
      ^ on node travis-job-stackstorm-puppet-st2-307595926.travisci.net
      ```

      You can see the full build here: https://travis-ci.org/StackStorm/puppet-st2/jobs/307595926

      This change was made in https://github.com/puppetlabs/puppetlabs-stdlib/commit/7999ff2aebbd2d85a231318f1e466b36d6dab84e#diff-84c6466e9d7e936cac54f83e7a74138f

      Looks like the code was switched from the rocket hash syntax to the new hash syntax.

      Desired Behavior:

      No errors

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              nmaludy Nick Maludy
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support