Skip to content

Fix load module metadata #537

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 15, 2015
Merged

Conversation

cmurphy
Copy link
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
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
Contributor

DavidS commented Oct 15, 2015

Thanks for your contribution, Colleen!

@cmurphy
Copy link
Contributor Author

cmurphy commented Oct 15, 2015

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

@nibalizer
Copy link
Contributor

Nice!

@DavidS
Copy link
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