HomePhorge

(#14288) gem provider should tolerate bad lines.
d5e0cddc9ab6Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(#14288) gem provider should tolerate bad lines.

Previously, when the output of the gem command contained a line that didn't
match it was returned as nil - but the rest of the provider didn't handle
that value at all!

That led to any mismatch causing various failures to dereference nil as a
hash, and general failure.

This fixes this to behave significantly better by just omitting that entry in
the result, returning only the expected content.

Signed-off-by: Daniel Pittman <daniel@puppetlabs.com>

Details

Provenance
Daniel Pittman <daniel@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU94dee104ddb8: Merge branch '2.7rc' into 2.7.x
Branches
Unknown
Tags
Unknown

Event Timeline

Daniel Pittman <daniel@puppetlabs.com> committed rPUd5e0cddc9ab6: (#14288) gem provider should tolerate bad lines. (authored by Daniel Pittman <daniel@puppetlabs.com>).May 3 2012, 1:23 AM