kusnier/vagrant-persistent-storage

If location is relative consider it under machine's root directory

dimara opened this issue · 1 comments

Commit 7f9e174 tried to fix issue #5 but did not take into account that vagrant commands can be called outside root directory using the machine id. In such a case upon vagrant destroy the "persistent" storage gets deleted since it never gets detached.

The above could be fixed if non-absolute paths are considered relative to the machine's root directory, which is reasonable enough. The root directory can be found via @global_env.root_path inside actions or via machine.env.root_path inside config.rb.

Thank you for the pull request in #100
A new version with you fix is available: 0.0.46