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

run_script function does not accept arguments

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • PUP 4.10.0, PUP 5.4.0
    • None
    • None
    • Bug Fix
    • Hide
      It was not possible to use the {{run_script}} function because it did not accept any arguments and did not pass any on to the bolt executor. Instead it always resulted in an error. This is now corrected and arguments can be given as a hash with a key {{'arguments'}} holding an array of Strings. The default is an empty array. The string arguments may be any string, including empty strings.
      Show
      It was not possible to use the {{run_script}} function because it did not accept any arguments and did not pass any on to the bolt executor. Instead it always resulted in an error. This is now corrected and arguments can be given as a hash with a key {{'arguments'}} holding an array of Strings. The default is an empty array. The string arguments may be any string, including empty strings.
    • Needs Assessment

    Description

      The run_script function does not accept arguments and does not pass anything on to the Bolt executor. As a result, any attempt to use run_script fails.

      The run_script function should accept a variable number of String arguments. The data type is String because the arguments are basically arguments as given on a command line and such can only be strings.

      Attachments

        Activity

          People

            Unassigned Unassigned
            henrik.lindberg Henrik Lindberg
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support