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

contain causes edges with nil targets to be added to the catalog

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Duplicate
    • Affects Version/s: PUP 3.4.3, PUP 3.5.0 RC, PUP 3.6.1
    • Fix Version/s: None
    • Component/s: Compiler, Docs
    • Labels:
    • Template:

      Description

      With certain manifests, interestingly enough not all of them, using contain causes nil edges to be added to the catalog.

      class profile::apt {
        contain apt
        contain apt::backports
        contain apt::unattended_upgrades
      }
      

      This causes a nil edge to appear in the catalog from Class[Apt] to nothing.

      Using this pattern, which emulates the same thing the nil edge does not appear and everything works:

      class profile::apt {
        class { '::apt': } ->
        class { '::apt::backports': | ->
        class { '::apt::unattended_upgrades': } ->
        Class['::profile::apt']
      }
      

      Unfortunately I can't reliably reproduce this in every case.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                nick.fagerlund Nicholas Fagerlund
                Reporter:
                daenney Daniele Sluijters
              • Votes:
                2 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support