Skip to content

Commit

Permalink
vagrant destroy only calls halt if vm is up
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Seifried committed Jan 6, 2021
1 parent 4e728f0 commit 5a68e8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/vagrant-ovirt4/action.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ def self.action_destroy

b2.use ConnectOVirt
b2.use ProvisionerCleanup, :before if defined?(ProvisionerCleanup)
b2.use HaltVM
b2.use WaitTillDown
b2.use HaltVM unless env[:machine].state.id == :down
b2.use WaitTillDown unless env[:machine].state.id == :down
b2.use DestroyVM
b2.use DisconnectOVirt
end
Expand Down

0 comments on commit 5a68e8b

Please sign in to comment.