Skip to content

Commit

Permalink
Merge pull request #261 from legal90/fix-box-unregister
Browse files Browse the repository at this point in the history
action/box_unregister: Fix #recover for layered envs
  • Loading branch information
legal90 committed Apr 25, 2016
2 parents e52e498 + 41bed9b commit 979b8e9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/vagrant-parallels/action/box_unregister.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ def call(env)
end

def recover(env)
# If we don't have a box, nothing to do
return if !env[:machine].box

unregister_box(env)
end

Expand Down

0 comments on commit 979b8e9

Please sign in to comment.