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

puppet apply creates warnings (since 7.x)

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • PUP 7.1.0
    • PUP 6.20.0, PUP 7.3.0
    • None
    • Windows 10 (x86, x64)
    • Coremunity
    • Platform Core KANBAN
    • Needs Assessment
    • Bug Fix
    • Eliminates ruby 2.7.x warnings when running "puppet apply" with node statements
    • 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

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

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support