Puppet: System Administration Automated

Support

Ticket #637 (closed defect: fixed)

Opened 2 years ago

Last modified 1 year ago

Virtual defines are not actually virtual

Reported by: luke Assigned to: luke
Priority: normal Milestone: fozzie
Component: language Version: 0.22.4
Severity: normal Keywords:
Cc: Triage Stage: Accepted
Attached Patches: None Complexity: Unknown

Description

Virtual defined resources always get sent to the client. E.g., the following code:

define yep($arg) {
    notify { "$name: $arg": }
}

@yep { test1: arg => maybe }
@yep { test2: arg => definitely }
@notify { "something else": }

#realize Yep[test1], Yep[test2]

The 'yep' resources get evaluated on the client whether the 'realize' line is there or not. The plain 'notify' does not get applied unless it is realized, though.

Change History

06/08/07 20:32:56 changed by luke

  • milestone changed from elmo to fozzie.

06/11/07 23:54:52 changed by luke

  • status changed from new to closed.
  • resolution set to fixed.

Fixed in [2562].