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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • PUP 7.4.1
    • PUP 7.5.0
    • Language
    • Coremunity
    • Platform Core KANBAN
    • Needs Assessment
    • Bug Fix
    • Fixes a regression in 7.x which prevented the splat operator from being used to override resource attributes in a resource collector.
    • 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

        1. pup_10951.tar.gz
          10 kB
          Steven Pritchard

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support