HomePhorge

(#23369) Allow caller to override YAML.load_file returning false
4205a8c83301Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(#23369) Allow caller to override YAML.load_file returning false

According to https://github.com/tenderlove/psych/issues/149, Syck and
Psych return false when ::YAML.load_file tries to parse an empty file.

Since Puppet::Indirector::Yaml#find calls Puppet::Util::Yaml.load_file
directly, we can't change the semantics of what it returns.

Instead we allow the caller to explicitly specify what the default value
should be.

Details

Provenance
Josh Cooper <josh@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUde8a14fd885f: (packaging) Update PUPPETVERSION to 3.4.0-rc1
Branches
Unknown
Tags
Unknown

Event Timeline

Josh Cooper <josh@puppetlabs.com> committed rPU4205a8c83301: (#23369) Allow caller to override YAML.load_file returning false (authored by Josh Cooper <josh@puppetlabs.com>).Dec 6 2013, 6:50 PM