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

Resource Collectors cannot use resource references in search expressions

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • PUP 4.0.0
    • PUP 4.3.2
    • Compiler
    • None
    • 1
    • Client 2016-01-13
    • Bug Fix
    • Puppet 4.0 introduced a regression where resource collectors using resource references would produce an error. This fixes that regression.

    Description

      In Puppet 4, resource collectors cannot use resource references in the search expression. This is an ability that did work in Puppet 3 and is currently in the documentation for Puppet 4.

      The following code in Puppet,

      File<| notify == Service['foo'] |>
      

      produces the error,

      Error: Evaluation Error: Error while evaluating a Virtual Query, Cannot transform object of class Puppet::Pops::Model::AccessExpression at /private/tmp/collection.pp:1:1 on node tom-mbp

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tom Thomas Linkin
              Sean Griffin Sean Griffin
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support