HomePhorge

(PUP-3591) Refactor get_facts to always return a hash
4ab1b5a56596Unpublished

Unpublished Commit · Learn More

Repository Importing: This repository is still importing.

Description

(PUP-3591) Refactor get_facts to always return a hash

Configurer#get_facts would return either nil, or a Hash, forcing the
main run_internal method to guard its result. I've changed this to
return an empty hash instead of nil for consistency, allowing us to
remove a bit of duplicate code.

Event Timeline

Josh Partlow <joshua.partlow@puppetlabs.com> committed rPU4ab1b5a56596: (PUP-3591) Refactor get_facts to always return a hash (authored by Josh Partlow <joshua.partlow@puppetlabs.com>).Nov 4 2014, 10:44 PM