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

'destroy' command fails when vm is in poweroff state #77

Closed
clintoncwolfe opened this issue Jul 28, 2014 · 3 comments
Closed

'destroy' command fails when vm is in poweroff state #77

clintoncwolfe opened this issue Jul 28, 2014 · 3 comments

Comments

@clintoncwolfe
Copy link

Need to detect poweroff state, and then skip attempt to poweroff VM.

[c-cwolfe@devops-chefsdk001 vsphere-try]$ vagrant status
Current machine states:

default vagrant_vsphere.states.short_poweroff (vsphere)

vagrant_vsphere.states.long_poweroff

[c-cwolfe@devops-chefsdk001 vsphere-try]$ vagrant destroy
==> default: Calling vSphere PowerOff
InvalidPowerState: The attempted operation cannot be performed in the current state (Powered off).
[c-cwolfe@devops-chefsdk001 vsphere-try]$ vagrant --version
Vagrant 1.6.3
[c-cwolfe@devops-chefsdk001 vsphere-try]$ vagrant plugin list
vagrant-berkshelf (2.0.1)

  • Version Constraint: 2.0.1
    vagrant-login (1.0.1, system)
    vagrant-share (1.1.0, system)
    vagrant-vsphere (0.11.0)
  • Version Constraint: 0.11.0
    [c-cwolfe@devops-chefsdk001 vsphere-try]$ vagrant plugin list vagrant-vsphere
@EKovalenok
Copy link

It would be very useful.

@rylarson
Copy link
Contributor

This should be able to be closed now. Pull request #93 should fix it.

@flamingbear
Copy link
Member

Closed. Thanks.

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

4 participants