Skip to content
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

(MODULES-6948) Fix/generate types chocolateyfeature #111

Merged
merged 1 commit into from
Jan 31, 2019
Merged

(MODULES-6948) Fix/generate types chocolateyfeature #111

merged 1 commit into from
Jan 31, 2019

Conversation

rico89
Copy link

@rico89 rico89 commented Jul 9, 2018

fix MODULES-6948 with changing the function name from features to choco_features. features is used by puppet internally to match providers and types (has_feature etc.). With renaming the feature function in the chocolateyfeature provider, it prevents this function to be executed when the types are getting generated on the master (and then fails because no chocolatey config can't be found).

@michaeltlombardi michaeltlombardi changed the title Fix/generate types chocolateyfeature (MODULES-6948) Fix/generate types chocolateyfeature Jan 9, 2019
@michaeltlombardi
Copy link

I'm unable to reproduce the original error, but the updated code works, passes CI, and changes no behavior - and includes updates to the tests. I'm inclined to merge on the belief that @rico89 did initial functional testing when they solved the problem.

Prior to this commit running `puppet generate types` with the
Chocolatey module installed led to an erroneous error whilst
trying to build the type for `chocolateyfeature`. This was due
to a collision over the `features` method.

This commit replaces use of the word `features` in the provider
for `chocolateyfeature` with `choco_features`, ensures the rest
of the relevant code matches, and updates the tests.
@ThoughtCrhyme ThoughtCrhyme merged commit 78af962 into puppetlabs:master Jan 31, 2019
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