Puppet: System Administration Automated

Support

Ticket #728 (assigned defect)

Opened 1 year ago

Last modified 7 months ago

ParsedFile providers do not work outside of a transaction

Reported by: luke Assigned to: luke (accepted)
Priority: low Milestone: elmo
Component: RAL Version: 0.23.0
Severity: normal Keywords: providers,parsedfile
Cc: Triage Stage: Accepted
Attached Patches: None Complexity: Unknown

Description

When using types with a Parsed File? provider, the class-level prefetch is never called, which means that their current state is never retrieved. This makes them not work with tools like 'ralsh'.

The fix should be relatively straightforward -- just find a way to trigger a prefetch if the data is missing -- but it likely requires a relatively high-level redesign to make this work. I made an attempt at triggering off of an empty @property_hash, and then creating a new hash during flush() (so that the provider class still had the data to write it to disk), but this caused other problems.

Change History

07/20/07 18:28:10 changed by luke

  • status changed from new to assigned.

An attempt was made to fix this in [2722], but I couldn't get it working quickly enough and I need to get beaker out the door.

11/24/07 05:43:07 changed by luke

  • priority changed from normal to low.

04/24/08 06:58:54 changed by luke

  • component changed from library to RAL.