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

TypeParser cannot handle negative numbers

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PUP 4.4.0
    • Component/s: None
    • Labels:
      None
    • Template:
    • Story Points:
      1
    • Sprint:
      Language 2016-01-27, Language 2016-02-10, Language 2016-02-24
    • Release Notes:
      Not Needed

      Description

      The Puppet::Pops::Types::TypeParser used when parsing dispatch declarations for a puppet functions written in Ruby is not capable of parsing negative numbers. It is therefore not possible to define a dispatch with a parameter type like Integer[default,-1]. The regular parser does not have this problem however so puppet apply -e 'Integer[default,-1]' executes without errors.

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  thomas.hallgren Thomas Hallgren
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Zendesk Support