-
-
Notifications
You must be signed in to change notification settings - Fork 266
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
Lots of log WARNings when using apt cookbook ("Deprecation class overwrites LWRP resource apt_preference from cookbook apt") #163
Comments
Googling doesn't help too much, the only stuff I'm finding are logs from travis-ci: |
This appears to be coming from Chef::Platform::HandlerMap in 12.4.1, though it isn't obvious why ChefSpec is triggering these warnings. FWIW, I see similar errors using the sudo cookbook. Thanks! |
I'm getting similar warning for a custom LWRP
I've also noticed that this warning only comes when I use runner = ChefSpec::ServerRunner.new do |node, server|
Hope this helps to narrow down the issue a bit. |
Is this still present with the recently released Chefspec 4.4.0 version?
|
@tknerr, yes I can confirm I'm still seeing this with ChefSpec 4.4.0 |
(Posted in issue 642 above, reposting here) Hey all, a hack workaround for this is to redirect stdout during the chefspec converge, and restore it afterwards. Code:
|
We'll be solving this soon by using compat_resource to provide the update and repository functionality. This aligns the code base with core chef and eliminates double code loading |
We've removed the sources from this cookbook so you shouldn't see this warnings in the 6.0 release now. |
I recently noticed that I'm getting lots of these warnings when using the apt cookbook:
This is using Chef 12.4.1 with chef zero provisioner, happening during a chefspec run
The text was updated successfully, but these errors were encountered: