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

Aws::AutoScaling::Resource#activities fails with NoMethodError #1101

Closed
mdub opened this issue Feb 24, 2016 · 3 comments
Closed

Aws::AutoScaling::Resource#activities fails with NoMethodError #1101

mdub opened this issue Feb 24, 2016 · 3 comments

Comments

@mdub
Copy link
Contributor

mdub commented Feb 24, 2016

I'm having problems using Aws::AutoScaling::Resource#activities, and Aws::AutoScaling::Group#activities, both of which are failing in Aws::Resources::Builder#build_batch, like this:

Aws> Aws.autoscaling.resource.activities(auto_scaling_group_name:"asg").first
NoMethodError: undefined method `[]' for nil:NilClass
from /Users/mike_williams/.gem/ruby/2.2.3/gems/aws-sdk-resources-2.2.19/lib/aws-sdk-resources/builder.rb:52:in `block (2 levels) in build_batch'

whereas, the corresponding client call works fine:

Aws> Aws.autoscaling.describe_scaling_activities(auto_scaling_group_name:"asg")
=> #<struct Aws::AutoScaling::Types::ActivitiesType

I'm using version 2.2.19 of aws-sdk-resources

@awood45
Copy link
Member

awood45 commented Feb 29, 2016

Thanks for the report - I'll reproduce and see what can be done about this.

@awood45
Copy link
Member

awood45 commented Feb 29, 2016

The issue is a typo in the resource definition. Going to make a fix for this and test.

awood45 added a commit that referenced this issue Mar 1, 2016
@awood45
Copy link
Member

awood45 commented Mar 1, 2016

Fix is pushed and will go out with the next release.

@awood45 awood45 closed this as completed Mar 1, 2016
awood45 added a commit that referenced this issue Mar 1, 2016
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

2 participants