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

Warning property source is declared in both resources #490

Open
runningman84 opened this issue Sep 2, 2016 · 2 comments
Open

Warning property source is declared in both resources #490

runningman84 opened this issue Sep 2, 2016 · 2 comments

Comments

@runningman84
Copy link
Contributor

I get a lot of warnings like this

[2016-09-02T09:25:47+00:00] WARN: /var/chef/cache/cookbooks/sensu/providers/gem.rb:5:in `block (2 levels) in class_from_file': property source is declared in both gem_package[ohai] and #<#<Class:0x0000000486ea58>:0x00000006a08678>. Use new_resource.source instead. At /var/chef/cache/cookbooks/sensu/providers/gem.rb:5:in `block (2 levels) in class_from_file'
[2016-09-02T09:25:47+00:00] WARN: /var/chef/cache/cookbooks/sensu/providers/gem.rb:6:in `block (2 levels) in class_from_file': property options is declared in both gem_package[ohai] and #<#<Class:0x0000000486ea58>:0x00000006a08678>. Use new_resource.options instead. At /var/chef/cache/cookbooks/sensu/providers/gem.rb:6:in `block (2 levels) in class_from_file'
@cwjohnston
Copy link
Contributor

Searching around shows other cookbooks produce similar warnings when they implement a resource of their own with a source property.

@tas50 any ideas as to the source of this? I'm not super concerned as it seems to be a spurious warning but it would be cool to eliminate more of these 😄

@tas50
Copy link
Contributor

tas50 commented Sep 22, 2016

That seems to just be a bogus warning message

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

3 participants