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

dynamic variable lookup works in templates

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PUP 3.5.0
    • Component/s: Compiler
    • Labels:
    • Template:
    • Story Points:
      1
    • Sprint:
      Week 2014-2-26 to 2014-3-5, Week 2014-3-05 to 2014-3-12

      Description

      Summary:

      From within templates, dynamic lookup of variables seems to work. I can declare a variable in the init.pp file. It shows up as undefined in the configuration.pp file. But then it will work fine within the templates created by configuration.pp.

      Steps to Reproduce:

      I've created a github repo with a simple module that shows off the issue. Basically its just creating a dynamic lookup variable in a template though, nothing special.
      https://github.com/rbirnie/puppet_scope_bug

      Expected Results:

      The variable should return undef which is what the manifests return.

      Actual Results:

      The variable returns the value that is assigned.

      Notes:
      Both agent and master are puppet 3.2.2

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              joshua.partlow Joshua Partlow
              Reporter:
              redmine.exporter redmine.exporter
              Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support