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

make import of named elements into a name space work as an alias

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Normal
    • Resolution: Won't Do
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Language
    • Labels:
      None
    • Template:
    • Sub-team:
    • Team:
      Server
    • Sprint:
      Language Triage
    • QA Risk Assessment:
      Needs Assessment

      Description

      Make it possible to import names from a namespace to local names.

      (TODO: Copy text from comments showing the idea to here).

      This was originally reported as a desire to shorten names when using Pcore.

      ORIGINAL


      We would like to have PCore objects load their module level namespace implicitly.

      This functionality exists with the init_typeset, but no other typesets.

      This would be used in manifests and the output of `puppet resource`

      resource { 'name':
        pcore_attr => Typeset::Type({
        'attr' => 'value',
        }),
      }
      

      vs

      resource { 'name':
        pcore_attr => Module::Typeset::Type({
        'attr' => 'value',
        }),
      }
      

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  henrik.lindberg Henrik Lindberg
                  Reporter:
                  richard.sherman Rick Sherman
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Zendesk Support