Puppet: System Administration Automated

Support

Ticket #1202 (new defect)

Opened 7 months ago

Last modified 7 months ago

Collection attribute matching doesn't parse arrays

Reported by: spheromak Assigned to: luke
Priority: normal Milestone: unplanned
Component: language Version: 0.24.4
Severity: normal Keywords: collections virtualresources
Cc: Triage Stage: Accepted
Attached Patches: None Complexity: Medium

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.

Change History

04/24/08 01:41:59 changed by jamtur01

  • owner changed from community to luke.
  • stage changed from Unreviewed to Needs more info.

Luke?

04/24/08 05:56:26 changed by luke

  • complexity changed from Unknown to Medium.
  • stage changed from Needs more info to Accepted.
  • component changed from library to language.
  • milestone set to unplanned.

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