mitchellh/vagrant — Issue #779: env.cli('destroy') raises a big unfriendly exception
Author: rtyler
Created: 2012-03-07 07:11:16+00:00
State: open

```
Background: # features/deb_support.feature:7
Given I have a running Ubuntu VM # features/step_definitions/deb_support_steps.rb:4
And I already have Puppet installed # features/step_definitions/deb_support_steps.rb:11
TODO (Cucumber::Pending)
./features/step_definitions/deb_support_steps.rb:12:in `/^I already have Puppet installed$/'
features/deb_support.feature:9:in `And I already have Puppet installed'
undefined method `upcase' for []:Array (NoMethodError)
/home/tyler/.rvm/gems/ruby-1.9.3-p0@puppet-jenkins/gems/vagrant-1.0.0/lib/vagrant/command/destroy.rb:35:in `block in execute'
/home/tyler/.rvm/gems/ruby-1.9.3-p0@puppet-jenkins/gems/vagrant-1.0.0/lib/vagrant/command/base.rb:106:in `block in with_target_vms'
/home/tyler/.rvm/gems/ruby-1.9.3-p0@puppet-jenkins/gems/vagrant-1.0.0/lib/vagrant/command/base.rb:101:in `each'
/home/tyler/.rvm/gems/ruby-1.9.3-p0@puppet-jenkins/gems/vagrant-1.0.0/lib/vagrant/command/base.rb:101:in `with_target_vms'
/home/tyler/.rvm/gems/ruby-1.9.3-p0@puppet-jenkins/gems/vagrant-1.0.0/lib/vagrant/command/destroy.rb:23:in `execute'
/home/tyler/.rvm/gems/ruby-1.9.3-p0@puppet-jenkins/gems/vagrant-1.0.0/lib/vagrant/cli.rb:38:in `execute'
/home/tyler/.rvm/gems/ruby-1.9.3-p0@puppet-jenkins/gems/vagrant-1.0.0/lib/vagrant/environment.rb:163:in `cli'
/home/tyler/source/github/puppetmodules/jenkins/features/step_definitions/deb_support_steps.rb:17:in `After'

Scenario: Do Stuff # features/deb_support.feature:11

Failing Scenarios:
cucumber features/deb_support.feature:11 # Scenario: Do Stuff

1 scenario (1 failed)
2 steps (1 pending, 1 passed)
```

Changing the code to `env.cli('destroy', '-f')` is a suitable workaround, but in all reality this should probably be handled friendlier :)