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

Puppet 'generate' function splits parameters on spaces

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: PUP 3.8.1
    • Fix Version/s: None
    • Component/s: Language
    • Labels:
      None
    • Environment:

      Puppetserver on Debian Linux Puppet 3.8.2 (not listed in the affects versions field as an option)

    • Template:

      Description

      The generate function seems to split a parameter passed into it on space with no obvious way to escape the spaces to pass the whole thing as one parameter.

      The behaviour is unchanged if escaped spaces or backslashes are used in the string to prevent splitting to it does not appear to be caused by an intermediate shell process.

      This is a regression as I discovered the problem in previously working code. It might have been caused by the switch to puppetserver two or three weeks ago as the broken call's result is not used often (authorized_keys content for an account rarely used).

      The call to generate uses two strings (one for the command, one for the single parameter), both from variables which are defined type parameters explicitly set (not using the default parameter value) in case that matters.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            mhoermann Matthias Hörmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support