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

Metaparameters are validated on unrealized resources

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • PUP 5.0.0
    • None
    • Agent
    • 1
    • Agent 2017-06-14, Agent 2017-06-28
    • Needs Assessment
    • Bug Fix
    • 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.
    • 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

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

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support