Skip to content

Fix load module metadata#537

Merged
DavidS merged 2 commits intopuppetlabs:masterfrom
cmurphy:fix_load_module_metadata
Oct 15, 2015
Merged

Fix load module metadata#537
DavidS merged 2 commits intopuppetlabs:masterfrom
cmurphy:fix_load_module_metadata

Conversation

@cmurphy
Copy link
Copy Markdown
Contributor

@cmurphy cmurphy commented Oct 14, 2015

Fix spec test and add feature to allow absence of metadata.json.

`rake spec` only finds test files that end in _spec.rb, so this test
was not being run. Correct the path name so that the test runs
properly.
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.
@cmurphy
Copy link
Copy Markdown
Contributor Author

cmurphy commented Oct 14, 2015

ping @nibalizer

DavidS added a commit that referenced this pull request Oct 15, 2015
@DavidS DavidS merged commit 57a8485 into puppetlabs:master Oct 15, 2015
@DavidS
Copy link
Copy Markdown
Contributor

DavidS commented Oct 15, 2015

Thanks for your contribution, Colleen!

@cmurphy
Copy link
Copy Markdown
Contributor Author

cmurphy commented Oct 15, 2015

Thanks @DavidS! When do you think this might get released? ;)

@nibalizer
Copy link
Copy Markdown
Contributor

Nice!

@DavidS
Copy link
Copy Markdown
Contributor

DavidS commented Oct 16, 2015

There is currently no release planned. Until there is one, you can use a reference to github in your Puppetfile to get this version. ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants