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

Wrong warrning: "variable contains an uppercase" #929

Closed
shamil opened this issue Aug 31, 2020 · 0 comments · Fixed by #932
Closed

Wrong warrning: "variable contains an uppercase" #929

shamil opened this issue Aug 31, 2020 · 0 comments · Fixed by #932
Labels

Comments

@shamil
Copy link

shamil commented Aug 31, 2020

I've this peace of code:

$test = "${Integer(fact('memory.system.total_bytes') * 0.7)}b"

puppet-lint prints warning about Integer has an uppercase, but Integrer is not variable it's a function for typecasting.

The error I get:

modules/profile/manifests/puppet-lint-test.pp - WARNING: variable contains an uppercase letter on line 3

Currently to avoid having this warning I use sprintf, but prefer to avoid it if possible:

$test = sprintf('%db', Integer(fact('memory.system.total_bytes') * 0.7))
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 a pull request may close this issue.

2 participants