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

Use --strict option to deprecate Class[<key>] where <key> begins with a capital letter.

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PUP 4.6.0
    • Component/s: None
    • Labels:
    • Template:
    • Acceptance Criteria:
      Hide

      That a

      notice Class[Foo]
      

      • notices that class reference without error or warning if --strict=off
      • notices that class reference with a warning if --strict=warning
      • errors if --strict=off
      Show
      That a notice Class[Foo] notices that class reference without error or warning if --strict=off notices that class reference with a warning if --strict=warning errors if --strict=off
    • Epic Link:
    • Story Points:
      1
    • Sprint:
      Language 2016-07-27
    • Release Notes:
      New Feature
    • Release Notes Summary:
      Hide
      The notation Class[Foo] where the name of the class is given with an upper case letter has been deprecated and will result in an error in the next major release of puppet. The deprecation warning (or optionally an error) is controlled by the --strict flag.
      Show
      The notation Class[Foo] where the name of the class is given with an upper case letter has been deprecated and will result in an error in the next major release of puppet. The deprecation warning (or optionally an error) is controlled by the --strict flag.

      Description

      It's currently possible to write Class[Foo] (where Foo starts with a capital letter). This construct should be deprecated since Foo in this case will be interpreted as the name of a resource or a type. A user should really write Class[foo] instead.

      The deprecation should be controllable using the --strict option.

        Attachments

          Activity

            jsd-sla-details-panel

              People

              • Assignee:
                phong Phong Ly
                Reporter:
                thomas.hallgren Thomas Hallgren
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: