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

Splatting attributes into an amended attribute block isn't supported

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Done
    • Affects Version/s: PUP 3.8.0, PUP 4.0.0
    • Fix Version/s: PUP 3.8.1, PUP 4.1.0
    • Component/s: Language
    • Labels:
      None
    • Template:
    • Epic Link:
    • Story Points:
      2
    • Sprint:
      Language 2015-04-29, Language 2015-05-13
    • Release Notes:
      Bug Fix

      Description

      Per Henrik Lindberg in email, this is supposed to work... but it totally doesn't.

      notify {'first':}
       
      $myattrs = {"message" => "from a reference attribute block"}
       
      Notify[first] { *=> $myattrs }
      # Error: Could not parse for environment production: The operator '* =>' in an Object is not supported. at /Users/nick/Documents/splat_reference.pp:5:17 on node magpie.lan
       
      notify {'extra': *=> $myattrs }
      # works fine.
       
      Notify <| title == 'first' |> { *=> $myattrs }
      # Error: Could not parse for environment production: In Puppet::Pops::Model::CollectExpression : Can not use a Puppet::Pops::Model::AttributesOperation where a Puppet::Pops::Model::AttributeOperation is expected on node magpie.lan
      

      QA


      risk: medium
      probability: low (passing a whole block)
      severity: medium (work-arounds available, obvious problem)
      test layer: unit-integration

        Attachments

          Activity

            jsd-sla-details-panel

              People

              • Assignee:
                Unassigned
                Reporter:
                nick.fagerlund Nicholas Fagerlund
                QA Contact:
                Eric Thompson
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support