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

Default facts uses concat_basedir #122

Closed
glennsarti opened this issue Jul 18, 2018 · 2 comments · Fixed by #124
Closed

Default facts uses concat_basedir #122

glennsarti opened this issue Jul 18, 2018 · 2 comments · Fixed by #124

Comments

@glennsarti
Copy link
Contributor

Default facts uses concat_basedir which is a deprecated fact as part of the concat module. Also it uses a linux only path.

Why is this included in the default facts for all modules created by the PDK?

@TheMeier
Copy link
Contributor

Where does it say that concat_basedir is deprecated? Actually in the concat module itself its is set as default fact for testing: https://github.com/puppetlabs/puppetlabs-concat/blob/3a2a64343d196fd487e62c1a1ac3716f44c6dc04/spec/default_facts.yml#L5

Without setting it spec tests which use concat fail.

@glennsarti
Copy link
Contributor Author

glennsarti commented Jul 19, 2018

The concat_basedir fact was coming from https://github.com/puppetlabs/puppetlabs-concat/blob/1.2.5/lib/facter/concat_basedir.rb . It was deleted and never replaced, over three years ago, in puppetlabs/puppetlabs-concat@51bd49f

Actually in the concat module itself its is set as default fact for testing

Yes, because this is a PDKified module and it came from this PDK template

Without setting it spec tests which use concat fail.

Then it should be added. IMO It should not be the default for every single module that uses the default PDK template.

And even if it should, it should not be a linux path. As this could break Windows users of the PDK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants