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

The operator '* =>' in a Virtual Query is not supported.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: PUP 7.4.1
    • Fix Version/s: PUP 7.5.0
    • Component/s: Language
    • Labels:
    • Template:
      PUP Bug Template
    • Team:
      Coremunity
    • Sprint:
      Platform Core KANBAN
    • Method Found:
      Needs Assessment
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      Fixes a regression in 7.x which prevented the splat operator from being used to override resource attributes in a resource collector.
    • QA Risk Assessment:
      Needs Assessment

      Description

      On Puppet 7.4.1, I get "The operator '* =>' in a Virtual Query is not supported." from the following code:

        $services.each |$key, $value| {
          if defined(Service[$key]) {
            Service <| title == $key |> {
              * => $value,
            }
          } else {
            service { $key:
              * => $value,
            }
          }
        }
      

      This seemed to work fine with Puppet 5 and 6.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              josh Josh Cooper
              Reporter:
              silug Steven Pritchard
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support