puppetlabs-stdlib/lib/puppet
Colleen Murphy 25410c4598 Let load_module_metadata succeed on empty file
Some modules or module versions don't have a metadata.json file, but we
might still want to use the load_module_metadata function on them. The
lack of a file can still give us important information. For example, it
might tell us that the version of the module installed is "very old"
even if we can't read the version number directly. This patch adds a
parameter to let the user specify if an empty file is acceptable. To
preserve backwards compatibility it does not change the current default
behavior, which is to raise an error if metadata.json does not exist.
2015-10-14 16:16:01 -07:00
..
functions (MODULES-2516) Adds an is_a() function 2015-09-14 18:26:25 +01:00
parser/functions Let load_module_metadata succeed on empty file 2015-10-14 16:16:01 -07:00
provider/file_line allow match parameter to influence ensure => absent behavior. 2015-08-06 13:44:32 -07:00
type (MODULES-2421) improve description of file_line 2015-10-13 15:03:26 +01:00