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

Puppet 7.6 breaks dot notation for custom facts (regression)

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Won't Fix
    • PUP 7.6.0, PUP 7.7.0
    • None
    • None
    • None
    • Needs Assessment
    • Needs Assessment

    Description

      Puppet Version: 7.6.1, 7.7.0
      Puppet Server Version: -
      OS Name/Version: Windows 10

      Puppet 7.6.1 (and also 7.7.0) breaks the dot notation for custom facts.

      To reproduce the problem, create an empty directory (A) and inside this directory, create the following subdirectories:

      site\modules\profiles\facts.d

      Inside the facts.d directory, create a file called fact_test.ps1 and fill it with this content

      Write-Host 'mycustom_fact.mysubfact=abc' 
      

      Then from the top directory (A), call this:

      puppet facts --environmentpath=. --environment=site
      

      Desired Behavior:

      The output should contain something like this:

      "mycustom_fact": {
          "mysubfact": "abc"
      }
      

      Actual Behavior:

      This works up to Puppet 7.5.0. Starting with Puppet 7.6.1, the output is like this:

      "mycustom_fact.mysubfact": "abc"
      

      The release notes don't mention anything about this change. In any case, for us this is a breaking change because we have Puppet scripts that rely on the version 7.5 behavior.

      Attachments

        Activity

          People

            Unassigned Unassigned
            skrysmanski Sebastian Krysmanski
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support