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

Remove removal of :tags= - doesn't work unless I remove this #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

robinbowes
Copy link
Contributor

I'm not sure what this line of code does, or is supposed to do, but unless I remove it the aws_iam_role resource type doesn't work:

$ bundle exec puppet resource aws_iam_role --libdir lib
Error: Could not autoload puppet/provider/aws_iam_role/api: method `tags=' not defined in Puppet::Type::Aws_iam_role::ProviderApi
Error: Could not autoload puppet/type/aws_iam_role: Could not autoload puppet/provider/aws_iam_role/api: method `tags=' not defined in Puppet::Type::Aws_iam_role::ProviderApi
Error: Could not run: Could not autoload puppet/type/aws_iam_role: Could not autoload puppet/provider/aws_iam_role/api: method `tags=' not defined in Puppet::Type::Aws_iam_role::ProviderApi

@bobtfish
Copy link
Owner

What version of puppet are you using for your tests here?

The problem/issue that this code is solving is that mk_resource_methods injects a tags= method, which we don't want (as we want the tags= method inherited from the parent class)

@robinbowes
Copy link
Contributor Author

This is using 3.6.2 on OSX:

  bundle exec puppet resource aws_iam_role --libdir lib
Error: Could not autoload puppet/provider/aws_iam_role/api: method `tags=' not defined in Puppet::Type::Aws_iam_role::ProviderApi
Error: Could not autoload puppet/type/aws_iam_role: Could not autoload puppet/provider/aws_iam_role/api: method `tags=' not defined in Puppet::Type::Aws_iam_role::ProviderApi
Error: Could not run: Could not autoload puppet/type/aws_iam_role: Could not autoload puppet/provider/aws_iam_role/api: method `tags=' not defined in Puppet::Type::Aws_iam_role::ProviderApi
$ bundle show puppet
/opt/rubies/1.9.3-p545/lib/ruby/gems/1.9.1/gems/puppet-3.6.2

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

Successfully merging this pull request may close these issues.

2 participants