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

Uppercase Default value in conditional documentation a typo?

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Docs
    • Labels:
      None
    • Template:
      PUP Bug Template
    • Method Found:
      Needs Assessment
    • QA Risk Assessment:
      Needs Assessment

      Description

      Puppet Version: 6.17

      Starting with 6.x it seems the documentation for case conditionals shows an uppercase `Default` as catch-call value. Since this doesn't work and would also be inconsistent to the selector statement I'm carefully assuming it's a (grave) typo?

      This test seems to confirm:

       

      class test {
        case $facts['os']['name'] {
          Default:  { notify {'uppercase default':} }
        }
        case $facts['os']['name'] {
          default:  { notify {'lowercase default':} }
        }
      }
      include test
      

       

       

      And the log:

      root@host:~# puppet  apply test.pp 
      Notice: Compiled catalog for host in environment production in 0.02 seconds
      Notice: lowercase default
      Notice: /Stage[main]/Test/Notify[lowercase default]/message: defined 'message' as 'lowercase default'
      Notice: Applied catalog in 0.06 seconds
      

        Attachments

          Activity

            People

            Assignee:
            claire.cadman Claire Cadman
            Reporter:
            octomike Michael Krause
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support