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

stdlib necessary? #9

Closed
jangrewe opened this issue Oct 22, 2014 · 3 comments
Closed

stdlib necessary? #9

jangrewe opened this issue Oct 22, 2014 · 3 comments

Comments

@jangrewe
Copy link

Hi, we're tried to using your module as-is, but we have a duplicate declaration of 'stdlib' because we're using it for stages - but i didn't notice any usage of stdlib in your module?
Is it possible to remove it from your init manifest? If so, i'd open a pull request, as we've also added the default_route parameter.

thanks,
Jan

@bfraser
Copy link
Owner

bfraser commented Oct 22, 2014

Hi, thanks for your interest in the module.

Yes, stdlib is being used for the empty() function in init.pp to check that the datasources hash is not empty. We should likely be using validate_hash(), but this would still require stdlib.

@jangrewe
Copy link
Author

I've looked at some of the other forks, and removing the stdlib isn't too uncommon among them. I don't have any hard evidence, but i'm guessing that most people include stdlib in a more commong location then just one particular module...
I'm not saying you should remove the stdlib functions you're using, i'm just asking if it may be possible to remove the include in your module! ;-)

@bfraser
Copy link
Owner

bfraser commented Oct 27, 2014

Hi @jangrewe you are correct, this module does not make use of stages, so the inclusion of stdlib is unnecessary. I have just pushed a commit which removes it.

Please feel free to submit a pull request to parameterize the default_route setting. Thanks!

@bfraser bfraser closed this as completed Oct 27, 2014
bastelfreak pushed a commit to bastelfreak/puppet-grafana that referenced this issue Jul 28, 2019
* fix rubocop errors
cegeka-jenkins pushed a commit to cegeka/puppet-grafana that referenced this issue Feb 1, 2024
* fix rubocop errors
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

No branches or pull requests

2 participants