Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-10845

puppet apply creates warnings (since 7.x)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: PUP 7.1.0
    • Fix Version/s: PUP 6.20.0, PUP 7.3.0
    • Component/s: None
    • Labels:
    • Template:
      PUP Bug Template
    • Agent OS:
      Windows 10 (x86, x64)
    • Team:
      Coremunity
    • Sprint:
      Platform Core KANBAN
    • Method Found:
      Needs Assessment
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      Eliminates ruby 2.7.x warnings when running "puppet apply" with node statements
    • QA Risk Assessment:
      Needs Assessment

      Description

      Puppet Version: 7.1.0
      Puppet Server Version: -
      OS Name/Version: Windows 10 x64 20H2

      Create a main.pp with the following contents (anywhere on your disk):

      node default {
      }
      

      Run:

      puppet apply main.pp
      

      Desired Behavior:

      No warnings should be shown.

      Actual Behavior:

      The following warnings are displayed:

      C:/Program Files/Puppet Labs/Puppet/puppet/lib/ruby/vendor_ruby/puppet/pops/model/ast_transformer.rb:34: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
      C:/Program Files/Puppet Labs/Puppet/puppet/lib/ruby/vendor_ruby/puppet/parser/ast/leaf.rb:29: warning: The called method `initialize' is defined here
      

      If you guys need any additional information, I'd happy to provide them.

        Attachments

          Activity

            People

            Assignee:
            josh Josh Cooper
            Reporter:
            skrysmanski Sebastian Krysmanski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support