intuit / simple_deploy

Maintenance Mode - Simple Deploy is an opinionated CLI tool for managing AWS Cloud Formation Stacks.
MIT License
64 stars 22 forks source link

simple_deploy 0.7.2 crashes when there are no instances #174

Closed ghost closed 10 years ago

ghost commented 11 years ago

$ simple_deploy -v 0.7.1

$ simple_deploy instances -e preprod-search-us-west-1 -n ssp-pod-1-dev-1-spamham-2-pandhale2 2013-03-27 17:05:43 -0700 INFO : Stack 'ssp-pod-1-dev-1-spamham-2-pandhale2' does not have any instances.

$ simple_deploy -v 0.7.2

$ simple_deploy instances -e preprod-search-us-west-1 -n ssp-pod-1-dev-1-spamham-2-pandhale2 /Users/rmonaghan/.rvm/gems/ruby-1.9.3-p392/gems/stackster-0.4.4/lib/stackster/aws/auto_scaling_groups.rb:18:in list_instances': undefined method[]' for nil:NilClass (NoMethodError) from /Users/rmonaghan/.rvm/gems/ruby-1.9.3-p392/gems/stackster-0.4.4/lib/stackster/instance/instance_reader.rb:13:in list_stack_instances' from /Users/rmonaghan/.rvm/gems/ruby-1.9.3-p392/gems/stackster-0.4.4/lib/stackster/stack/stack_reader.rb:39:ininstances' from /Users/rmonaghan/.rvm/gems/ruby-1.9.3-p392/gems/stackster-0.4.4/lib/stackster/stack.rb:66:in instances' from /Users/rmonaghan/.rvm/gems/ruby-1.9.3-p392/gems/simple_deploy-0.7.2/lib/simple_deploy/stack.rb:83:ininstances' from /Users/rmonaghan/.rvm/gems/ruby-1.9.3-p392/gems/simple_deploy-0.7.2/lib/simple_deploy/cli/instances.rb:38:in list' from /Users/rmonaghan/.rvm/gems/ruby-1.9.3-p392/gems/simple_deploy-0.7.2/lib/simple_deploy/cli.rb:47:instart' from /Users/rmonaghan/.rvm/gems/ruby-1.9.3-p392/gems/simple_deploy-0.7.2/bin/simple_deploy:6:in <top (required)>' from /Users/rmonaghan/.rvm/gems/ruby-1.9.3-p392/bin/simple_deploy:19:inload' from /Users/rmonaghan/.rvm/gems/ruby-1.9.3-p392/bin/simple_deploy:19:in <main>' from /Users/rmonaghan/.rvm/gems/ruby-1.9.3-p392/bin/ruby_noexec_wrapper:14:ineval' from /Users/rmonaghan/.rvm/gems/ruby-1.9.3-p392/bin/ruby_noexec_wrapper:14:in `

'

keviny22 commented 11 years ago

@rickmendes I got the same error and logged a bug. I got mine when doing trying to list the instances against a stack that didn't exist, does your stack show up when you list stacks?

ghost commented 11 years ago

@keviny22 Yes. The stacks we were trying this against tonight all showed up in the list output.

bw-intuit commented 10 years ago

This appears to be fixed in 0.8.2:

$ simple_deploy instances -n test123 preprod 2014-04-02 06:34:36 -0700 INFO : Stack 'test123' does not have any instances.