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

Onceover cannot use logger in a custom ruby function #254

Open
findmyname666 opened this issue Feb 17, 2020 · 0 comments
Open

Onceover cannot use logger in a custom ruby function #254

findmyname666 opened this issue Feb 17, 2020 · 0 comments

Comments

@findmyname666
Copy link

Hi There,

I use logger inside custom ruby function and it seems that onceover doesn't like it.
Ruby function contains:

	    logger = Logger.new(STDOUT)
	    logger.level = Logger::WARN

Onceover fails:

role::test: ? Error: Evaluation Error: Error while evaluating a Function Call, uninitialized constant Puppet::Pops::Loader::RubyFunctionInstantiator::Logger (file: /some_path/puppet_ng/.onceover/etc/puppetlabs/code/environments/production/modules/firewall/manifests/pre.pp, line: 32, column: 20) on node noname

Could you advise whether Is there any fix or workaround for it pls?

Thx
BR

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

1 participant