Bug #1202

Collection attribute matching doesn't parse arrays

Added by Jesse Nelson almost 4 years ago. Updated over 3 years ago.

Status:Closed Start date:
Priority:Normal Due date:
Assignee:Luke Kanies % Done:

0%

Category:language
Target version:0.24.6
Affected Puppet version:0.24.4 Branch:
Keywords:
Votes: 0

Description

when using a collection to realize a resource. In this case a user. The collection isn’t comparing each array element to the match condition:

   User <| groups == leads |>
    
   @user { "foo":
        ensure => "present",
        groups => [[bar" "baz" "leads]],
   }

this user wont be realized.

History

Updated by James Turnbull almost 4 years ago

Luke?

Updated by Luke Kanies almost 4 years ago

I discussed this some with him online, and I think it makes sense to have this behaviour.

Updated by Redmine Admin over 3 years ago

  • Status changed from 1 to Accepted

Updated by Brice Figureau over 3 years ago

  • Affected Puppet version set to 0.24.4

spheromak wrote:

when using a collection to realize a resource. In this case a user. The collection isn’t comparing each array element to the match condition:

[…]

this user wont be realized.

Patch available in branch tickets/0.24.x/1202 on my masterzen/puppet github repository: http://github.com/masterzen/puppet/commits/tickets/0.24.x/1202

Updated by James Turnbull over 3 years ago

  • Status changed from Accepted to Closed
  • Target version changed from 4 to 0.24.6

Pushed in commit:c7a6ef2889b0fb2507e5be98a1dd29b69957a216 in branch 0.24.x

Also available in: Atom PDF