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

NoMethodError trying to create a new AWS Route53 entry using version 0.7.1 #150

Closed
briceo opened this issue Jul 8, 2015 · 0 comments
Closed
Assignees
Labels

Comments

@briceo
Copy link

briceo commented Jul 8, 2015

When I run the following code:

require 'fog'
aws = {provider:'AWS', aws_access_key_id: 'some_key', aws_secret_access_key: 'some_secret_access_key', aws_session_token: nil }
record = { value: '10.10.10.10', ttl: '60', name: 'host.example.com', type: 'A' }
dns = Fog::DNS.new(aws)
zone = dns.zones.get('some_zone_id')
zone.records.create(record)

I get the error:

NoMethodError: undefined method `change_resource_record_sets_data' for #<Fog::DNS::AWS::Real:0x00000003274108>
    from /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/fog-aws-0.7.1/lib/fog/aws/requests/dns/change_resource_record_sets.rb:64:in `change_resource_record_sets'
    from /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/fog-aws-0.7.1/lib/fog/aws/models/dns/record.rb:44:in `save'
    from /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/fog-core-1.32.0/lib/fog/core/collection.rb:51:in `create'
    from (irb):17
    from ./irb:11:in `<main>'

It seems like line 64 in change_resource_record_sets.rb needs to reference the class that contains the class method being called (it was removed in changeset b4dc8b0).

@lanej lanej added the bug label Jul 8, 2015
@lanej lanej self-assigned this Jul 8, 2015
@lanej lanej closed this as completed in 2816fa4 Jul 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants