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

Metaparameters are validated on unrealized resources

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PUP 5.0.0
    • Component/s: None
    • Template:
    • Sub-team:
    • Team:
      Agent
    • Story Points:
      1
    • Sprint:
      Agent 2017-06-14, Agent 2017-06-28
    • Method Found:
      Needs Assessment
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      Virtual resources with relationship meta parameter containing a reference to a non existing resource was validated even if the resource was not realized. This is now fixed.
    • QA Risk Assessment:
      Manual

      Description

      I would not expect these to be validated unless the resource is actually realized, since an unrealized resource could indicate that other related resources are missing.

      branan@rycon:~/proj/pl/puppet$ bundle exec puppet apply foo.pp
      Error: Could not find resource 'Package[aptitude]' in parameter 'require' at /home/branan/proj/pl/puppet/foo.pp:2 on node rycon
      branan@rycon:~/proj/pl/puppet$ cat foo.pp
      @package { 'apt':
        require => Package['aptitude']
      }
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              eric.delaney Eric Delaney
              Reporter:
              branan Branan Riley
              QA Contact:
              Eric Delaney Eric Delaney
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support