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

Method #uniqueness_key computes different results for the same resource.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Accepted
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Template:
    • Team:
      Coremunity

      Description

      A resource defined as File['/tmp/test/'] will yield different results for the #uniqueness_key when the resource is added to the catalog as a result of a compilation and added to a catalog as the result of a call to Catalog#to_ral. The former case will retain the trailing slash in the key whereas the latter will remove it.

      This is a problem because a compile might add two resource to the catalog (same path, but with and without trailing slash) and a subsequent apply will then crash on an alias conflict.

      The solution probably involves a rewrite of the logic dealing with namevar and parameters.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              thomas.hallgren Thomas Hallgren
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:

                  Zendesk Support